]> Raphaƫl G. Git Repositories - distgen/blob - lib/root.sh
Commit rename
[distgen] / lib / root.sh
1 #! /bin/sh -e
2
3 # Make mount point
4 mkdir -p ${MOUNTPOINT}
5
6 # Mount slash filesystem
7 mount /dev/mapper/${DATANAME} ${MOUNTPOINT}
8
9 # Make boot, home, mail, mysql in mount point
10 mkdir -p ${MOUNTPOINT}/{boot,home,var/spool/mail,var/lib/mysql}
11
12 # Mount boot filesystem
13 mount /dev/md/${MDBOOT} ${MOUNTPOINT}/boot
14
15 # Mount home filesystem
16 mount -o subvol=/home /dev/mapper/${DATANAME} ${MOUNTPOINT}/home
17
18 # Mount mail filesystem
19 mount -o subvol=/mail /dev/mapper/${DATANAME} ${MOUNTPOINT}/var/spool/mail
20
21 # Mount mysql filesystem
22 mount -o subvol=/mysql /dev/mapper/${DATANAME} ${MOUNTPOINT}/var/lib/mysql