Bug 208629

Summary: [bsdinstall] zfsboot: Add new "BIOS+UEFI" boot type
Product: Base System Reporter: Ganael LAPLANCHE <ganael.laplanche>
Component: miscAssignee: freebsd-sysinstall (Nobody) <sysinstall>
Status: Closed FIXED    
Severity: Affects Some People CC: allanjude, emaste, martymac, shawn.webb
Priority: --- Keywords: install, patch, uefi
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch against -CURRENT r297697 none

Description Ganael LAPLANCHE 2016-04-08 08:46:35 UTC
Created attachment 169099 [details]
Patch against -CURRENT r297697

Hi,

Following this post :

https://lists.freebsd.org/pipermail/freebsd-hackers/2015-August/048141.html

(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 freebsd_triage 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

Log:
  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

Changes:
  head/usr.sbin/bsdinstall/scripts/zfsboot
Comment 2 commit-hook freebsd_committer freebsd_triage 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

Log:
  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)

Changes:
  head/usr.sbin/bsdinstall/scripts/zfsboot
Comment 3 Ganael LAPLANCHE 2016-05-27 05:46:50 UTC
Thanks Allan !