From 1143d2d2adbf4df9e2985d3e5fc31b5b9aa1fd6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 31 Jan 2019 18:58:21 +0100 Subject: [PATCH 1/1] Add slash, mail and mysql subvol --- lib/root.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/root.sh b/lib/root.sh index 8efdc47..0ba093c 100644 --- a/lib/root.sh +++ b/lib/root.sh @@ -6,14 +6,17 @@ mkdir -p ${MOUNTPOINT} # Mount slash filesystem mount /dev/mapper/${DATANAME} ${MOUNTPOINT} -# Make boot in mount point -mkdir -p ${MOUNTPOINT}/boot +# Make boot, home, mail, mysql in mount point +mkdir -p ${MOUNTPOINT}/{boot,home,var/spool/mail,var/lib/mysql} # Mount boot filesystem mount /dev/md/${MDBOOT} ${MOUNTPOINT}/boot -# Make home in mount point -mkdir -p ${MOUNTPOINT}/home - # Mount home filesystem mount -o subvol=/home /dev/mapper/${DATANAME} ${MOUNTPOINT}/home + +# Mount mail filesystem +mount -o subvol=/mail /dev/mapper/${DATANAME} ${MOUNTPOINT}/var/spool/mail + +# Mount mysql filesystem +mount -o subvol=/mysql /dev/mapper/${DATANAME} ${MOUNTPOINT}/var/lib/mysql -- 2.41.1