diff --git a/base.sh b/base.sh index 1c6d78c..a79e6af 100644 --- a/base.sh +++ b/base.sh @@ -246,6 +246,13 @@ if [[ $kernel == 3 || $kernel == 4 || $kernel == 5 ]]; then fi fi +cryptroot_name=$(grep "#\s/dev/mapper" /etc/fstab | head -n 1 | sed 's/#\s\/dev\/mapper\/\(.*\)\s.*/\1/') +cryptroot_device_name=$(grep "LABEL=EFI" /etc/fstab | sed 's/#\s\/dev\/\(.\{3\}\).*/\1/') +cryptroot_device_uuid=$(blkid -o value -s UUID /dev/"$cryptroot_device_name"2) + +#sed -i "s/root=LABEL=arch/root=\/dev\/mapper\/$cryptroot_name rd.luks.name=$cryptroot_device_uuid=$cryptroot_name/" /boot/loader/entries/arch.conf +find . -type f -name arch\*.conf -exec sed -i "s/root=LABEL=arch/root=\/dev\/mapper\/$cryptroot_name rd.luks.name=$cryptroot_device_uuid=$cryptroot_name/" {} \; + useradd -mG wheel eichehome echo eichehome:testen | chpasswd