fix: escape sed forward slashes

This commit is contained in:
Price Hiller 2022-07-30 04:26:07 -05:00
parent aa1a30c2ce
commit b1951aff3c

View File

@ -324,7 +324,7 @@ main() {
print-title "Configure System"
printf "Entering Chroot\n" >&2
arch-chroot /mnt <<-__END_CHROOT_CMDS__
printf "Setting default password as %s\n" "$(important "toor")"
printf "Setting default password as toor\n"
printf "toor\ntoor\n" | passwd
printf "Linking timezone as %s\n" "$(important "${ARCH_TIMEZONE}")" >&2
@ -352,7 +352,7 @@ main() {
printf "Configure Grub\n" >&2
yes | pacman -S grub efibootmgr intel-ucode amd-ucode
sed -i
"s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"cryptdevice=UUID=$(blkid -s UUID -o value "${root_partition}"):cryptroot\"/" /etc/default/grub
"s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"cryptdevice=UUID=$(blkid -s UUID -o value "${root_partition}"):cryptroot root=\/dev\/mapper\/cryptroot\"/" /etc/default/grub
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg