fix crypttab uuid

master
lub 5 years ago
parent c187275054
commit e376a620ef

@ -51,7 +51,7 @@ else
fi fi
# edit uuids in fstab # 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) boot_uuid=$(blkid --output value "/hardware-setup/hardware/${1}/boot" | head -n1)
esp_uuid=$(blkid --output value "/hardware-setup/hardware/${1}/esp" | head -n1) esp_uuid=$(blkid --output value "/hardware-setup/hardware/${1}/esp" | head -n1)
sed -i "s/%root_uuid%/${root_uuid}/" /etc/crypttab sed -i "s/%root_uuid%/${root_uuid}/" /etc/crypttab

Loading…
Cancel
Save