From 38751ae4a70afb5b916fdecffb86506c1bccefa7 Mon Sep 17 00:00:00 2001 From: eichehome Date: Thu, 30 Mar 2023 11:12:24 +0200 Subject: [PATCH] =?UTF-8?q?kernel=20bootparameter=20f=C3=BCr=20verschl?= =?UTF-8?q?=C3=BCsselten=20Boot=20vorbereitet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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