Added UUID.
This commit is contained in:
parent
74bcfde100
commit
323db9b41a
|
@ -313,6 +313,9 @@ arch-chroot /mnt bootctl --path=/boot install &&
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
# Get UUID for primary partition
|
||||||
|
uuid=$(ls -l /dev/disk/by-uuid | grep $main | awk '{print $9}')
|
||||||
|
|
||||||
# Set bootloader entry.
|
# Set bootloader entry.
|
||||||
echo "Setting up bootloader.."
|
echo "Setting up bootloader.."
|
||||||
cat << EOF > /mnt/boot/loader/entries/arch.conf &&
|
cat << EOF > /mnt/boot/loader/entries/arch.conf &&
|
||||||
|
@ -321,7 +324,8 @@ linux /vmlinuz-linux-zen
|
||||||
#initrd /amd-ucode.img
|
#initrd /amd-ucode.img
|
||||||
#initrd /intel-ucode.img
|
#initrd /intel-ucode.img
|
||||||
initrd /initramfs-linux-zen.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 root=/dev/mapper/main rw
|
||||||
options rootflags=subvol=root
|
options rootflags=subvol=root
|
||||||
options lang=de locale=de_DE.UTF-8
|
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
|
title Arch Linux Fallback
|
||||||
linux /vmlinuz-linux
|
linux /vmlinuz-linux
|
||||||
initrd /initramfs-linux-fallback.img
|
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 root=/dev/mapper/main rw
|
||||||
options rootflags=subvol=root
|
options rootflags=subvol=root
|
||||||
options lang=de locale=de_DE.UTF-8
|
options lang=de locale=de_DE.UTF-8
|
||||||
|
|
Loading…
Reference in New Issue