Examples for GRUB $prefix and $root

fix "efibootmgr -d" argument

dont set hostname in live environment

Signed-off-by: Maurice Zhou <ja@apvc.uk>
This commit is contained in:
Maurice Zhou
2021-05-04 14:20:00 +08:00
committed by Richard Laager
parent fd48b2641f
commit 16cb298acf

View File

@@ -199,12 +199,6 @@ Preparations
INST_HOST='archonzfs' INST_HOST='archonzfs'
Set live system hostname, this will be used
in SSH keys and zpool::
hostnamectl set-hostname $INST_HOST
echo $INST_HOST > /etc/hostname
#. Kernel variant #. Kernel variant
Store the kernel variant in a variable. Store the kernel variant in a variable.
@@ -1095,14 +1089,14 @@ GRUB Installation
# add boot menu entries # add boot menu entries
for i in ${DISK[@]}; do for i in ${DISK[@]}; do
efibootmgr -cgp 1 -l "\EFI\arch\grubx64.efi" \ efibootmgr -cgp 1 -l "\EFI\arch\grubx64.efi" \
-L "arch-${i##*/}" -d ${i}-part1 -L "arch-${i##*/}" -d ${i}
done done
If Secure Boot is enabled with PreLoader:: If Secure Boot is enabled with PreLoader::
for i in ${DISK[@]}; do for i in ${DISK[@]}; do
efibootmgr -cgp 1 -l "\EFI\BOOT\BOOTX64.EFI" \ efibootmgr -cgp 1 -l "\EFI\BOOT\BOOTX64.EFI" \
-L "arch-PreLoader-${i##*/}" -d ${i}-part1 -L "arch-PreLoader-${i##*/}" -d ${i}
done done
#. If using BIOS booting, install GRUB to every disk:: #. If using BIOS booting, install GRUB to every disk::
@@ -1176,10 +1170,14 @@ This section is also applicable if you are in
out with:: out with::
echo $root echo $root
# cryto0
# hd0,gpt2
GRUB configuration is loaded from:: GRUB configuration is loaded from::
echo $prefix echo $prefix
# (crypto0)/sys/BOOT/default@/grub
# (hd0,gpt2)/sys/BOOT/default@/grub
#. List partitions by pressing tab key: #. List partitions by pressing tab key: