minor update

This commit is contained in:
mfgbhatti 2022-01-28 15:28:37 +00:00
parent 49344fe9dd
commit 6559a4faeb
1 changed files with 6 additions and 2 deletions

View File

@ -41,9 +41,13 @@ if [[ "$LAYOUT" ]]; then
mkfs.vfat -F32 -n "EFIBOOT" "$PART2"
mkfs.btrfs -L "ROOT" "$PART3" -f
mount -t btrfs "$PART3" /mnt
btrfs subvolume create /mnt/"${SUBVOLUMES[*]}"
for x in "${SUBVOLUMES[@]}"; do
btrfs subvolume create /mnt/"$x"
done
umount /mnt
mount -o "$MOUNTOPTION",subvol="${SUBVOLUMES[*]}" "$PART3" /mnt
for y in "${SUBVOLUMES[@]}"; do
mount -o "$MOUNTOPTION",subvol="$y" "$PART3" /mnt
done
else
modprobe dm-mod
vgscan &>/dev/null