btrfs: Add root subvol
This commit is contained in:
parent
3267b72853
commit
9b285557a7
10
archfi
10
archfi
@ -578,6 +578,16 @@ formatdevice(){
|
||||
btrfs)
|
||||
echo "mkfs.btrfs -f $2"
|
||||
mkfs.btrfs -f $2
|
||||
if [ "$1" = "root" ]; then
|
||||
echo "mount $2 /mnt"
|
||||
echo "btrfs subvolume create /mnt/root"
|
||||
echo "btrfs subvolume set-default /mnt/root"
|
||||
echo "umount /mnt"
|
||||
mount $2 /mnt
|
||||
btrfs subvolume create /mnt/root
|
||||
btrfs subvolume set-default /mnt/root
|
||||
umount /mnt
|
||||
fi
|
||||
;;
|
||||
reiserfs)
|
||||
echo "mkfs.reiserfs -f $2"
|
||||
|
Loading…
x
Reference in New Issue
Block a user