Bios or Efi, next fix

This commit is contained in:
git
2024-06-27 16:09:51 +02:00
parent 159a1cecf5
commit e77444b682
2 changed files with 3 additions and 3 deletions

View File

@@ -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 && \