Update btrfs-test.sh
This commit is contained in:
parent
5a807b9bec
commit
4c75e51760
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue