Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/bootconfig
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | if [ `uname -m` == powerpc ]; then | ||||
if [ "$platform" == ps3 -o "$platform" == powernv ]; then | if [ "$platform" == ps3 -o "$platform" == powernv ]; then | ||||
rootpart=$(awk '{ if($2 == "/") printf("%s:%s\n", $3, $1); }' $PATH_FSTAB) | rootpart=$(awk '{ if($2 == "/") printf("%s:%s\n", $3, $1); }' $PATH_FSTAB) | ||||
mkdir -p $BSDINSTALL_CHROOT/boot/etc/ | mkdir -p $BSDINSTALL_CHROOT/boot/etc/ | ||||
echo FreeBSD=\'/kernel/kernel kernelname=/boot/kernel/kernel vfs.root.mountfrom=${rootpart}\' > $BSDINSTALL_CHROOT/boot/etc/kboot.conf | echo FreeBSD=\'/kernel/kernel kernelname=/boot/kernel/kernel vfs.root.mountfrom=${rootpart}\' > $BSDINSTALL_CHROOT/boot/etc/kboot.conf | ||||
fi | fi | ||||
fi | fi | ||||
# Update the ESP (EFI System Partition) with the new bootloader if we have an ESP | # Update the ESP (EFI System Partition) with the new bootloader if we have an ESP | ||||
if [ -d "$BSDINSTALL_CHROOT/boot/efi" ]; then | if [ -n "$(awk '{if ($2=="/boot/efi") printf("%s\n",$1);}' $PATH_FSTAB)" ]; then | ||||
case $(uname -m) in | case $(uname -m) in | ||||
arm64) ARCHBOOTNAME=aa64 ;; | arm64) ARCHBOOTNAME=aa64 ;; | ||||
amd64) ARCHBOOTNAME=x64 ;; | amd64) ARCHBOOTNAME=x64 ;; | ||||
riscv) ARCHBOOTNAME=riscv64 ;; | riscv) ARCHBOOTNAME=riscv64 ;; | ||||
# arm) ARCHBOOTNAME=arm ;; # No other support for arm install | # arm) ARCHBOOTNAME=arm ;; # No other support for arm install | ||||
# i386) ARCHBOOTNAME=ia32 ;; # no support for this in i386 kernels, rare machines | # i386) ARCHBOOTNAME=ia32 ;; # no support for this in i386 kernels, rare machines | ||||
*) die "Unsupported arch $(uname -m) for UEFI install" | *) die "Unsupported arch $(uname -m) for UEFI install" | ||||
esac | esac | ||||
Show All 34 Lines |