]> Raphaƫl G. Git Repositories - distgen/blob - lib/free.sh
a01b36872b0c510e2532cf53bcd5a9e73a6336ff
[distgen] / lib / free.sh
1 #! /bin/sh -e
2
3 # Umount slash
4 umount ${MOUNTPOINT}
5
6 # Close slash luks partition
7 cryptsetup close ${SLASHNAME}
8 cryptsetup close ${DATANAME}
9
10 # Stop raids
11 mdadm --manage /dev/md/${MDBOOT} -S
12 mdadm --manage /dev/md/${MDSLASH} -S
13 mdadm --manage /dev/md/${MDDATA} -S
14
15 # Detach loops
16 losetup -d ${LOOPA}
17 losetup -d ${LOOPB}