Resolved SED error, user password

This commit is contained in:
Price Hiller 2021-11-26 00:17:36 -06:00
parent cb0e40f0e1
commit 92caa571f1

View File

@ -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