From 54a5714e794e74d568120f48dee3f2f5d779b7c0 Mon Sep 17 00:00:00 2001 From: Mats van Reenen Date: Mon, 12 Sep 2022 12:23:05 +0200 Subject: [PATCH] get corect UUID of diks --- in-root.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/in-root.sh b/in-root.sh index f4f157b..a51d9fd 100644 --- a/in-root.sh +++ b/in-root.sh @@ -34,7 +34,7 @@ echo "127.0.1.1 $HOSTNAME" >>/etc/hosts run "config initramfs" "sed --in-place -e 's/HOOKS=(.*)/HOOKS=(base udev autodetect keyboard keymap modconf block encrypt filesystems fsck)/' /etc/mkinitcpio.conf" run "generate initramfs" "mkinitcpio -P" -DISKUUID=$(blkid --output export ${DISK}10 | grep PARTUUID | sed 's/PARTUUID=//') +DISKUUID=$(blkid --output export ${DISK}10 | grep '^UUID' | sed 's/UUID=//') run "run grub-install" "grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot" run "grub: enable crypt disk" "sed --in-place -E -e 's/#?GRUB_ENABLE_CRYPTODISK=(.*)/GRUB_ENABLE_CRYPTODISK=y/' /etc/default/grub" run "grub: crypt disk map" "sed --in-place -E -e 's/#?GRUB_CMDLINE_LINUX=(.*)&/GRUB_CMDLINE_LINUX=\\\"\/dev\/disk\/by-uuid\/${DISKUUID}:cryptroot \1\\\"/' /etc/default/grub"