From e376a620efa47b092eaa6431a5ab1259da0dca2e Mon Sep 17 00:00:00 2001 From: lub Date: Tue, 28 Jan 2020 20:37:50 +0100 Subject: [PATCH] fix crypttab uuid --- post-debootstrap-installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index bc831a7..a8c1bbf 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -51,7 +51,7 @@ else fi # edit uuids in fstab -root_uuid=$(blkid --output value "/dev/mapper/root-unlocked" | head -n1) +root_uuid=$(blkid --output value "$(cryptsetup status root-unlocked | grep device | perl -pe 's#.*device.* (.*)#$1#')" | head -n1) boot_uuid=$(blkid --output value "/hardware-setup/hardware/${1}/boot" | head -n1) esp_uuid=$(blkid --output value "/hardware-setup/hardware/${1}/esp" | head -n1) sed -i "s/%root_uuid%/${root_uuid}/" /etc/crypttab