Harry Schmalzbauer
2016-Nov-07 08:04 UTC
boot1.efifat's FAT12 volume label prevents booting (some systems)
Bez?glich Patrick M. Hausen's Nachricht vom 07.11.2016 08:10 (localtime):> Hi, all, > >> Am 06.11.2016 um 18:14 schrieb Dimitry Andric <dim at freebsd.org>: >> >> Please do, so it is not forgotten. It is relatively easy to change the >> volume label, by editing sys/boot/efi/boot1/generate-fat.sh, and then >> regenerating the FAT templates. > > Why use the pre-generated image at all when you can easilyIt's what bsdinstall seems to do, which left the system unbootable, not what I do.> create the EFI boot volume like this? > > gpart add -t efi -l efi -a 512k -s 512k <device> > newfs_msdos /dev/gpt/efi > mount_msdosfs /dev/gpt/efi /mnt > mkdir -p /mnt/efi/boot > cp /boot/boot1.efi /mnt/efi/boot/bootx64.efiYou are missing startup.nsh... See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214282https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214282 -Harry
Patrick M. Hausen
2016-Nov-07 08:12 UTC
boot1.efifat's FAT12 volume label prevents booting (some systems)
Hi,> Am 07.11.2016 um 09:04 schrieb Harry Schmalzbauer <freebsd at omnilan.de>: >> create the EFI boot volume like this? >> >> gpart add -t efi -l efi -a 512k -s 512k <device> >> newfs_msdos /dev/gpt/efi >> mount_msdosfs /dev/gpt/efi /mnt >> mkdir -p /mnt/efi/boot >> cp /boot/boot1.efi /mnt/efi/boot/bootx64.efi > > You are missing startup.nsh... > See > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214282https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214282Care to elaborate? This is what we use in production - all systems booting just fine ;-) Thanks, Patrick -- punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 info at punkt.de http://www.punkt.de Gf: J?rgen Egeling AG Mannheim 108285
Harry Schmalzbauer
2016-Nov-07 08:17 UTC
boot1.efifat's FAT12 volume label prevents booting (some systems)
Bez?glich Harry Schmalzbauer's Nachricht vom 07.11.2016 09:04 (localtime):> Bez?glich Patrick M. Hausen's Nachricht vom 07.11.2016 08:10 (localtime): >> Hi, all, >> >>> Am 06.11.2016 um 18:14 schrieb Dimitry Andric <dim at freebsd.org>: >>> >>> Please do, so it is not forgotten. It is relatively easy to change the >>> volume label, by editing sys/boot/efi/boot1/generate-fat.sh, and then >>> regenerating the FAT templates. >> Why use the pre-generated image at all when you can easily > It's what bsdinstall seems to do, which left the system unbootable, not > what I do. > > >> create the EFI boot volume like this? >> >> gpart add -t efi -l efi -a 512k -s 512k <device>And you possibly run into other firmware problems by again using EFI as label. I don't know the standards, but it's obvious that at least one unexpected label/path interference causes problems, so it's better not to provoke another one which possibly affects only very few implementations, but causes needless trouble. Better use something like 'gpart add -t efi -l A-uefiLOADER -a 512k -s 512k <device>' (resulting in /dev/gpt/A-uefiLOADER to be used insteaad of /dev/gpt/efi for the following commands) I personally prefer the "A-" prefix is to describe that it's the 1st mirror component? Change it to whatever you like.>> newfs_msdos /dev/gpt/efi >> mount_msdosfs /dev/gpt/efi /mnt >> mkdir -p /mnt/efi/boot >> cp /boot/boot1.efi /mnt/efi/boot/bootx64.efi-Harry