about summary refs log tree commit diff
path: root/shutdown.d/80-filesystems.sh
blob: 95dcce43e8099b540720d2d5bfcf229d565e2961 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if [ -z "$VIRTUALIZATION" ]; then
    msg "Unmounting filesystems, disabling swap..."
    swapoff -a
    umount -r -a -t nosysfs,noproc,nodevtmpfs,notmpfs
    msg "Remounting rootfs read-only..."
    mount -o remount,ro /
fi

sync

if [ -z "$VIRTUALIZATION" ]; then
    deactivate_vgs
    deactivate_crypt
fi