Fix mkdir

This commit is contained in:
Augusto Gunsch 2021-11-07 15:44:33 -03:00
parent 9f4968484c
commit 146dd74602
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 1 additions and 2 deletions

View File

@ -177,7 +177,6 @@ partition() {
echo -n "Configuring BOOT partition..."
quiet mkfs.fat -F 32 "$DRIVE_TARGET"2
fatlabel "$DRIVE_TARGET"2 BOOT
mkdir -p /mnt/boot
echo "done"
fi
@ -189,7 +188,7 @@ partition() {
echo -n "Configuring ROOT partition..."
quiet mkfs.ext4 -L ROOT "$DRIVE_TARGET"$rootN
quiet mount "$DRIVE_TARGET"$rootN /mnt
[ $UEFI -ne 1 ] && quiet mount "$DRIVE_TARGET"2 /mnt/boot
[ $UEFI -ne 1 ] && mkdir -p /mnt/boot && quiet mount "$DRIVE_TARGET"2 /mnt/boot
echo "done"
}