Added UUID.

This commit is contained in:
proledatarian 2022-12-12 13:00:34 +00:00
parent 74bcfde100
commit 323db9b41a
1 changed files with 7 additions and 2 deletions

View File

@ -313,6 +313,9 @@ arch-chroot /mnt bootctl --path=/boot install &&
echo "Done."
echo
# Get UUID for primary partition
uuid=$(ls -l /dev/disk/by-uuid | grep $main | awk '{print $9}')
# Set bootloader entry.
echo "Setting up bootloader.."
cat << EOF > /mnt/boot/loader/entries/arch.conf &&
@ -321,7 +324,8 @@ linux /vmlinuz-linux-zen
#initrd /amd-ucode.img
#initrd /intel-ucode.img
initrd /initramfs-linux-zen.img
options cryptdevice=/dev/$main:main
#options cryptdevice=/dev/$main:main
options cryptdevice=UUID=$uuid:main
options root=/dev/mapper/main rw
options rootflags=subvol=root
options lang=de locale=de_DE.UTF-8
@ -334,7 +338,8 @@ cat << EOF > /mnt/boot/loader/entries/arch-fallback.conf &&
title Arch Linux Fallback
linux /vmlinuz-linux
initrd /initramfs-linux-fallback.img
options cryptdevice=/dev/$main:main
#options cryptdevice=/dev/$main:main
options cryptdevice=UUID=$uuid:main
options root=/dev/mapper/main rw
options rootflags=subvol=root
options lang=de locale=de_DE.UTF-8