]> Raphaƫl G. Git Repositories - distgen/blob - lib/root.sh
8efdc47d524255946e03eb6ea0c529d910917b74
[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 in mount point
10 mkdir -p ${MOUNTPOINT}/boot
11
12 # Mount boot filesystem
13 mount /dev/md/${MDBOOT} ${MOUNTPOINT}/boot
14
15 # Make home in mount point
16 mkdir -p ${MOUNTPOINT}/home
17
18 # Mount home filesystem
19 mount -o subvol=/home /dev/mapper/${DATANAME} ${MOUNTPOINT}/home