fix crypttab

master
lub 4 years ago
parent a1e20155ce
commit c187275054

@ -1,2 +1,2 @@
# <target> <source device> <key file> <options>
md0-unlocked /dev/md0 none luks,discard
root-unlocked UUID=%root_uuid% none luks,discard

@ -3,6 +3,6 @@
#
# <file system> <dir> <type> <options> <dump> <pass>
UUID=%root_uuid% / btrfs relatime 0 0
/dev/mapper/root-unlocked / btrfs relatime 0 0
UUID=%boot_uuid% /boot btrfs relatime 0 0
UUID=%esp_uuid% /boot/efi vfat relatime 0 0

@ -54,7 +54,7 @@ fi
root_uuid=$(blkid --output value "/dev/mapper/root-unlocked" | 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/fstab
sed -i "s/%root_uuid%/${root_uuid}/" /etc/crypttab
sed -i "s/%boot_uuid%/${boot_uuid}/" /etc/fstab
sed -i "s/%esp_uuid%/${esp_uuid}/" /etc/fstab

Loading…
Cancel
Save