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