diff --git a/artix_scripts/after-chroot.sh b/artix_scripts/after-chroot.sh index 581aaa0..a821bee 100755 --- a/artix_scripts/after-chroot.sh +++ b/artix_scripts/after-chroot.sh @@ -36,7 +36,7 @@ pacman -S dosfstools freetype2 fuse2 gptfdisk libisoburn mtools os-prober grub e sed -i "s/quiet/quiet resume=UUID=`blkid -s UUID -o value /dev/lvmSystem/volSwap`/g" /etc/default/grub && \ sed -i "s/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"cryptdevice=UUID=`blkid -s UUID -o value $DISK\2`:lvm-system\"/g" /etc/default/grub && \ sed -i "s/#GRUB_ENABLE_CRYPTODISK/GRUB_ENABLE_CRYPTODISK/g" /etc/default/grub -if [ $BIOSorEFI == "EFI"] +if [ $BIOSorEFI == "EFI"]; then grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=artix --recheck $DISK else grub-install --target=i386-pc $DISK --bootloader-id=artix --recheck $DISK diff --git a/artix_scripts/pre-chroot.sh b/artix_scripts/pre-chroot.sh index 3a21e9e..73cf618 100755 --- a/artix_scripts/pre-chroot.sh +++ b/artix_scripts/pre-chroot.sh @@ -5,7 +5,7 @@ source env.sh #Parted pacman -Sy && \ yes | pacman -S parted -if [ $BIOSorEFI == "EFI"] +if [ $BIOSorEFI == "EFI"]; then parted -s $DISK mklabel gpt && \ parted -s -a optimal $DISK mkpart "primary" "fat32" "0%" "512MiB" && \ parted -s $DISK set 1 esp on && \ @@ -33,7 +33,7 @@ lvcreate -L 2G $LVM_N -n volHome && \ #Filesystems and mount mkswap /dev/$LVM_N/volSwap -if [ $BIOSorEFI == "EFI"] +if [ $BIOSorEFI == "EFI"]; then mkfs.fat -n ESP -F 32 $DISK\1 fi mkfs.ext4 -L volRoot /dev/$LVM_N/volRoot && \