From: Raphaƫl Gertz Date: Thu, 31 Jan 2019 17:58:21 +0000 (+0100) Subject: Add slash, mail and mysql subvol X-Git-Tag: 0.1~3 X-Git-Url: https://git.rapsys.eu/distgen/commitdiff_plain/1143d2d2adbf4df9e2985d3e5fc31b5b9aa1fd6d?ds=inline;hp=b966b792b12baaaab64a762e435ea029799662c0 Add slash, mail and mysql subvol --- 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