Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/bootconfig
#!/bin/sh | #!/bin/sh | ||||
#- | #- | ||||
# Copyright (c) 2018 Rebecca Cran | |||||
# Copyright (c) 2017 Nathan Whitehorn | # Copyright (c) 2017 Nathan Whitehorn | ||||
# All rights reserved. | # All rights reserved. | ||||
# | # | ||||
Context not available. | |||||
fi | fi | ||||
fi | fi | ||||
# For new-style EFI booting, add code here | # Update the ESP (EFI System Partition) with the new bootloader | ||||
# Add boot0cfg for MBR BIOS booting? | if [ `sysctl -n machdep.bootmethod` == UEFI ]; then | ||||
mkdir -p $BSDINSTALL_CHROOT/boot/efi/EFI/FreeBSD | |||||
cp $BSDINSTALL_CHROOT/boot/loader.efi $BSDINSTALL_CHROOT/boot/efi/EFI/FreeBSD | |||||
fi | |||||
imp: how can this ever be true? We only ever set X86_BOOTMETHOD foor amd64 and i386. | |||||
Done Inline ActionsI'm checking if the machine is arm64 _or_ the x86 bootmethod is UEFI. bcran: I'm checking if the machine is arm64 _or_ the x86 bootmethod is UEFI.
So it's going to be true… | |||||
# Add boot0cfg for MBR BIOS booting? | |||||
Context not available. | |||||
Done Inline Actionsif we know the path to the kernel, it would be good to include that here. imp: if we know the path to the kernel, it would be good to include that here.
| |||||
Done Inline ActionsI've taken a note to add the kernel path in a follow-up changeset. bcran: I've taken a note to add the kernel path in a follow-up changeset. |
how can this ever be true? We only ever set X86_BOOTMETHOD foor amd64 and i386.