refind commit

This commit is contained in:
Tommaso Chiti 2023-10-15 00:22:24 +02:00
parent 0fb1180482
commit 254d298945
2 changed files with 7 additions and 14 deletions

View file

@ -359,7 +359,7 @@ microcode_detector
# Pacstrap (setting up a base sytem onto the new root).
info_print "Installing the base system (it may take a while)."
pacstrap -K /mnt base "$kernel" "$microcode" linux-firmware "$kernel"-headers btrfs-progs grub grub-btrfs rsync efibootmgr snapper reflector snap-pac zram-generator sudo &>/dev/null
pacstrap -K /mnt base "$kernel" "$microcode" linux-firmware "$kernel"-headers btrfs-progs refind rsync efibootmgr snapper reflector snap-pac zram-generator sudo &>/dev/null
# Setting up the hostname.
echo "$hostname" > /mnt/etc/hostname
@ -394,9 +394,9 @@ HOOKS=(systemd autodetect keyboard sd-vconsole modconf block sd-encrypt filesyst
EOF
# Setting up LUKS2 encryption in grub.
info_print "Setting up grub config."
info_print "Setting up grub config (does nothing)"
UUID=$(blkid -s UUID -o value $CRYPTROOT)
sed -i "\,^GRUB_CMDLINE_LINUX=\"\",s,\",&rd.luks.name=$UUID=cryptroot root=$BTRFS," /mnt/etc/default/grub
# Configuring the system.
info_print "Configuring the system (timezone, system clock, initramfs, Snapper, GRUB)."
@ -423,11 +423,8 @@ arch-chroot /mnt /bin/bash -e <<EOF
mount -a &>/dev/null
chmod 750 /.snapshots
# Installing GRUB.
grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=GRUB &>/dev/null
# Creating grub config file.
grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null
# Installing and configuring rEFInd.
# notes on how to use refind
EOF