From 6ab7631476257e125a11ed1e1b224f8dfe588fc0 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 30 Jul 2022 05:31:04 -0500 Subject: [PATCH] # On branch Development # Your branch is up to date with 'origin/Development'. # # Changes to be committed: # (use "git restore --staged ..." to unstage) # modified: Misc/Arch-LuksCrypt-Install.bash --- Misc/Arch-LuksCrypt-Install.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Misc/Arch-LuksCrypt-Install.bash b/Misc/Arch-LuksCrypt-Install.bash index 6441f7e..6389f83 100644 --- a/Misc/Arch-LuksCrypt-Install.bash +++ b/Misc/Arch-LuksCrypt-Install.bash @@ -168,7 +168,7 @@ get-available-disks() { fi done <<<"$(lsblk --output NAME,TYPE)" - printf "%s" "${available_disks[@]}" + printf "%s" "${available_disks[*]}" } get-disk-partitions() { @@ -351,7 +351,8 @@ 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 root=\/dev\/vg\/root\"/" /etc/default/grub + sed -i + "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"cryptdevice=UUID=$(blkid -s UUID -o value "${root_partition}"):cryptroot root=\/dev\/mapper\/cryptroot"/" /etc/default/grub printf "GRUB_ENABLE_CRYPTO_DISK=y\n" >> /etc/default/grub grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg