bug fixes

This commit is contained in:
mfgbhatti 2022-01-28 16:09:36 +00:00
parent 09544be20d
commit a1cc053985
1 changed files with 4 additions and 4 deletions

View File

@ -41,16 +41,16 @@ if [[ "$LAYOUT" ]]; then
mkfs.vfat -F32 -n "EFIBOOT" "$PART2"
mkfs.btrfs -L "ROOT" "$PART3" -f
mount -t btrfs "$PART3" /mnt
IFS=' ' read -r -a _LIST <<< "$SUBVOLUMES"
for x in "${_LIST[@]}"; do
for x in "${SUBVOLUMES[@]}"; do
btrfs subvolume create /mnt/"${x}"
done
umount /mnt
mount -o "$MOUNTOPTION",subvol=@ "$PART3" /mnt
for y in "${_LIST[@]:1}"; do
for y in "${SUBVOLUMES[@]:1}"; do
mkdir /mnt/"${y}"
done
for z in "${_LIST[@]:1}"; do
for z in "${SUBVOLUMES[@]:1}"; do
mount -o "$MOUNTOPTION",subvol="${z}" "$PART3" /mnt/"${z}"
done
else