From 92caa571f1f90d508417574e6b0381c4d5c3f220 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 26 Nov 2021 00:17:36 -0600 Subject: [PATCH] Resolved SED error, user password --- Misc/Arch-LuksCrpy-Install.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Misc/Arch-LuksCrpy-Install.bash b/Misc/Arch-LuksCrpy-Install.bash index 5f809a3..10f0f3f 100755 --- a/Misc/Arch-LuksCrpy-Install.bash +++ b/Misc/Arch-LuksCrpy-Install.bash @@ -297,8 +297,7 @@ install() { log "info" "Finished generating fstab" log "info" "Switching to new installation and finishing up install" arch-chroot /mnt << __END_CHROOT_CMDS__ - echo Set your root password now - passwd + echo -e "toor\ntoor\n" | passwd echo "arch" > /etc/hostname cat << __EOF__ > "/etc/hosts" @@ -315,9 +314,10 @@ __EOF__ mkinitcpio -P yes | pacman -S grub efibootmgr intel-ucode amd-ucode - local disk_uuid + disk_uuid disk_uuid="$(blkid -s UUID -o value "${install_path}p2")" - sed 's/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="cryptdevice=UUID=${disk_uuid}:cryptroot"' + echo "DISK UUID: ${disk_uuid}" + sed 's/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="cryptdevice=UUID=${disk_uuid}:cryptroot"/' grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg