forked from dataprolet/Arch-Linux-Installer
Update btrfs-test.sh
This commit is contained in:
@ -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 &&
|
||||
|
Reference in New Issue
Block a user