Exporting UUID

This commit is contained in:
Price Hiller 2021-11-26 00:29:51 -06:00
parent 92caa571f1
commit da65c5433a

View File

@ -314,8 +314,7 @@ __EOF__
mkinitcpio -P
yes | pacman -S grub efibootmgr intel-ucode amd-ucode
disk_uuid
disk_uuid="$(blkid -s UUID -o value "${install_path}p2")"
export disk_uuid="$(blkid -s UUID -o value "${install_path}p2")"
echo "DISK UUID: ${disk_uuid}"
sed 's/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="cryptdevice=UUID=${disk_uuid}:cryptroot"/'
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB