Bug 208629 - [bsdinstall] zfsboot: Add new "BIOS+UEFI" boot type
Summary: [bsdinstall] zfsboot: Add new "BIOS+UEFI" boot type
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-sysinstall (Nobody)
Keywords: install, patch, uefi
Depends on:
Reported: 2016-04-08 08:46 UTC by Ganael LAPLANCHE
Modified: 2016-05-27 05:46 UTC (History)
4 users (show)

See Also:

Patch against -CURRENT r297697 (3.88 KB, patch)
2016-04-08 08:46 UTC, Ganael LAPLANCHE
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ganael LAPLANCHE 2016-04-08 08:46:35 UTC
Created attachment 169099 [details]
Patch against -CURRENT r297697


Following this post :


(see "Pushing the limits"), here is a patch to enable a new boot type called "BIOS+UEFI". This special type will enable generic installations by creating both freebsd-boot and efi boot partitions, allowing the machine to reboot either in BIOS mode or in UEFI mode.

This patch also fixes creation of /tmp and /var/tmp to avoid problems with unattended installations (this will conflict with Bug 208568 - reduce requirements for zfs filesystems in zfsboot for unattended installations)

Best regards,

Ganael Laplanche.
Comment 1 commit-hook freebsd_committer 2016-04-08 15:08:58 UTC
A commit references this bug:

Author: allanjude
Date: Fri Apr  8 15:08:22 UTC 2016
New revision: 297713
URL: https://svnweb.freebsd.org/changeset/base/297713

  bsdinstall/zfsboot should create /tmp and /var/tmp if they do not exist

  PR:		208629
  PR:		208568
  Submitted by:	Galael LAPLANCHE <ganael.laplanche@corp.ovh.com>
  MFC after:	2 weeks

Comment 2 commit-hook freebsd_committer 2016-04-19 03:25:52 UTC
A commit references this bug:

Author: allanjude
Date: Tue Apr 19 03:25:36 UTC 2016
New revision: 298243
URL: https://svnweb.freebsd.org/changeset/base/298243

  Add a new installation type to bsdinstall/zfsboot: BIOS+UEFI

  Installs both pmbr+gptzfsboot as well as boot1.efifat in separate partitions
  The resulting system can be booted with either UEFI or BIOS/CSM.
  Preference is controlled by the user's firmware boot settings.

  This is now the default for zfsboot installs

  PR:		208629
  Submitted by:	Galael LAPLANCHE <ganael.laplanche@corp.ovh.com> (original version)

Comment 3 Ganael LAPLANCHE 2016-05-27 05:46:50 UTC
Thanks Allan !