Update btrfs-test.sh

This commit is contained in:
proledatarian 2022-02-16 14:07:00 +00:00
parent 5a807b9bec
commit 4c75e51760
1 changed files with 14 additions and 0 deletions

View File

@ -199,6 +199,20 @@ exit
# Creating btrfs partition.
mkfs.btrfs /dev/mapper/main
mount /dev/mapper/main /mnt
btrfs subvolume create /mnt/@root
btrfs subvolume create /mnt/@home
btrfs subvolume create /mnt/@snapshots
umount /mnt
mount -o subvol=@root /dev/mapper/main /mnt
mkdir /mnt/home
mount -o subvol=@home /dev/mapper/main /mnt/home
mkdir /mnt/.snapshots
mount -o subvol=@snapshots /dev/mapper/main /mnt/.snapshots
# Creating physical volume.
#echo "Creating physical volume."
#pvcreate /dev/mapper/lvm &&