X-Git-Url: https://git.rapsys.eu/distgen/blobdiff_plain/6d2ea3b7342187b1d5209f1d1efef79427471c80..d35811343537a02eaa9b76c6b597205945dae36b:/lib/root.sh diff --git a/lib/root.sh b/lib/root.sh index 6f6af1e..0ba093c 100644 --- a/lib/root.sh +++ b/lib/root.sh @@ -4,11 +4,19 @@ mkdir -p ${MOUNTPOINT} # Mount slash filesystem -mount /dev/mapper/${SLASHNAME} ${MOUNTPOINT} +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 +# 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