Bios or Efi, next fix
This commit is contained in:
@@ -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/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_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
|
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
|
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=artix --recheck $DISK
|
||||||
else
|
else
|
||||||
grub-install --target=i386-pc $DISK --bootloader-id=artix --recheck $DISK
|
grub-install --target=i386-pc $DISK --bootloader-id=artix --recheck $DISK
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ source env.sh
|
|||||||
#Parted
|
#Parted
|
||||||
pacman -Sy && \
|
pacman -Sy && \
|
||||||
yes | pacman -S parted
|
yes | pacman -S parted
|
||||||
if [ $BIOSorEFI == "EFI"]
|
if [ $BIOSorEFI == "EFI"]; then
|
||||||
parted -s $DISK mklabel gpt && \
|
parted -s $DISK mklabel gpt && \
|
||||||
parted -s -a optimal $DISK mkpart "primary" "fat32" "0%" "512MiB" && \
|
parted -s -a optimal $DISK mkpart "primary" "fat32" "0%" "512MiB" && \
|
||||||
parted -s $DISK set 1 esp on && \
|
parted -s $DISK set 1 esp on && \
|
||||||
@@ -33,7 +33,7 @@ lvcreate -L 2G $LVM_N -n volHome && \
|
|||||||
|
|
||||||
#Filesystems and mount
|
#Filesystems and mount
|
||||||
mkswap /dev/$LVM_N/volSwap
|
mkswap /dev/$LVM_N/volSwap
|
||||||
if [ $BIOSorEFI == "EFI"]
|
if [ $BIOSorEFI == "EFI"]; then
|
||||||
mkfs.fat -n ESP -F 32 $DISK\1
|
mkfs.fat -n ESP -F 32 $DISK\1
|
||||||
fi
|
fi
|
||||||
mkfs.ext4 -L volRoot /dev/$LVM_N/volRoot && \
|
mkfs.ext4 -L volRoot /dev/$LVM_N/volRoot && \
|
||||||
|
|||||||
Reference in New Issue
Block a user