]> Raphaƫl G. Git Repositories - distgen/blobdiff - lib/root.sh
Commit rename
[distgen] / lib / root.sh
index 6f6af1e027bf5233a73db5e6ca80bb5bb20df175..0ba093cfe8fba1784a516b8132ff5fc3762dc5dd 100644 (file)
@@ -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