personal_scripts

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit c695588d6845ca549ccdbb851a2517a0c12122d5
parent 70f393b858e779344525c37f705023d04fd85710
Author: mrgrouse <bdmfegys@duck.com>
Date:   Wed, 15 May 2024 22:34:13 -0400

artix-install.sh: begin work on getting UUID as variables; work on grub auto generated config file

Diffstat:
Martix-install.sh | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/artix-install.sh b/artix-install.sh @@ -81,7 +81,10 @@ ln -sf /usr/share/zoneinfo/$country/$timezone /etc/localtime ### GRUB ### grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Artix # TODO: set up configuration of /etc/default/grub -sed -i '1s/^/GRUB_/' file_name +root_basename=$(echo $root_drive | awk -F '/' '{print $2}') +root_uuid=$(lsblk -f | grep root_basename) +grubcmdline="GRUB_CMDLINE_LINUX=\"cryptdevice=UUID=$root_uuid:$cryptname rootfstype=ext4\"" +sed -i "1s/$grubcmdline^/GRUB_/" /etc/default/grub # build config grub-mkconfig -o /boot/grub/grub.cfg