Bios or Efi, next
This commit is contained in:
@@ -35,8 +35,12 @@ pacman -Sy && \
|
||||
pacman -S dosfstools freetype2 fuse2 gptfdisk libisoburn mtools os-prober grub efibootmgr && \
|
||||
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 && \
|
||||
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=artix --recheck $DISK && \
|
||||
sed -i "s/#GRUB_ENABLE_CRYPTODISK/GRUB_ENABLE_CRYPTODISK/g" /etc/default/grub
|
||||
if [ $BIOSorEFI == "EFI"]
|
||||
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
|
||||
fi
|
||||
grub-mkconfig -o /boot/grub/grub.cfg && \
|
||||
|
||||
#services
|
||||
|
||||
Reference in New Issue
Block a user