unix/fiss-linux

etc/stop.d/80-filesystems.sh in master
Repositories | Summary | Log | Files | LICENSE

80-filesystems.sh (309B) download


 1if [ -z "$VIRTUALIZATION" ]; then
 2    msg "Unmounting filesystems, disabling swap..."
 3    swapoff -a
 4    umount -r -a -t nosysfs,noproc,nodevtmpfs,notmpfs
 5    msg "Remounting rootfs read-only..."
 6    mount -o remount,ro /
 7fi
 8
 9sync
10
11if [ -z "$VIRTUALIZATION" ]; then
12    deactivate_vgs
13    deactivate_crypt
14fi