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)
URL:
Keywords: install, patch, uefi
Depends on:
Blocks:
 
Reported: 2016-04-08 08:46 UTC by Ganael LAPLANCHE
Modified: 2016-05-27 05:46 UTC (History)
4 users (show)

See Also:


Attachments
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

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 !