From b966b792b12baaaab64a762e435ea029799662c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 31 Jan 2019 18:57:10 +0100 Subject: [PATCH] Add slash, mail and mysql subvol --- lib/mkfs.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/mkfs.sh b/lib/mkfs.sh index 34bfe2e..2a59025 100644 --- a/lib/mkfs.sh +++ b/lib/mkfs.sh @@ -17,12 +17,18 @@ mkdir -p ${MOUNTPOINT} # Mount base filesystem mount /dev/mapper/${DATANAME} ${MOUNTPOINT} -# Create slash subvolume -btrfs subvolume create ${MOUNTPOINT}/slash - # Create home subvolume btrfs subvolume create ${MOUNTPOINT}/home +# Create mail subvolume +btrfs subvolume create ${MOUNTPOINT}/mail + +# Create mysql subvolume +btrfs subvolume create ${MOUNTPOINT}/mysql + +# Create slash subvolume +btrfs subvolume create ${MOUNTPOINT}/slash + # Set slash as default btrfs subvolume set-default $(btrfs subvolume list ${MOUNTPOINT} | grep slash | perl -pne 's/^ID\s([0-9]+)\s.*$/\1/') ${MOUNTPOINT} -- 2.41.1