summaryrefslogtreecommitdiff
path: root/backend/modules/cleanup
blob: fe604a01bb04dabeb981146c2fdd606c64c5b7d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

function cleanup()
{
	
        cd /
        umount "$TARGET/proc" &>/dev/null
        umount "$TARGET/dev" &>/dev/null
        umount "$TARGET/sys" &>/dev/null
	umount_all_affected "$(hdmap_get device of mountpoint /)" &>/dev/null
        umount "$TARGET" &>/dev/null
        umount "/live/filesystem" &>/dev/null
	rmdir "$TARGET" "/live/filesystem" &>/dev/null
}