Bladeren bron

add back passwd for videopc user + simplify cmdline

Noah Vogt 1 jaar geleden
bovenliggende
commit
dc9a51949b
2 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 1 1
      chroot.sh
  2. 3 0
      stage2.sh

+ 1 - 1
chroot.sh

@@ -30,7 +30,7 @@ sed -i 's/block filesystems/block encrypt filesystems/' /etc/mkinitcpio.conf
 root_uuid="$(grep ext4 /etc/fstab | sed 's/^UUID=//; s/\s\/.*$//')"
 drive2_uuid="$(blkid | grep "$DRIVE"2 | tr ' ' '\n' | grep ^UUID= | sed 's/^UUID="//; s/"//')"
 
-echo "pti=on page_alloc.shuffle=1 BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=$root_uuid rw cryptdevice=UUID=$drive2_uuid:cryptroot loglevel=0 quiet udev.log_level=3" > /etc/kernel/cmdline
+echo "pti=on page_alloc.shuffle=1 BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=$root_uuid rw cryptdevice=UUID=$drive2_uuid:cryptroot loglevel=7" > /etc/kernel/cmdline
 chmod +w /etc/kernel/cmdline
 
 sb_status="$(sbctl status)"

+ 3 - 0
stage2.sh

@@ -64,6 +64,9 @@ create_videopc_user() {
     if ls /home/ | grep -q "^$username$"; then
         return
     fi
+    while true; do
+        passwd && break
+    done
 
     echo -e "\e[0;30;34mCreating videopc user ...\e[0m"
     username="videopc"