X-Git-Url: https://git.rapsys.eu/distgen/blobdiff_plain/eb11babe9f1cd3766c1d7a5f67a06d0f88d55d04..d35811343537a02eaa9b76c6b597205945dae36b:/lib/root.sh 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