summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/live/10-unmountfs.chroot
blob: 05bcc12cd2f6f0d14052628f35866530fd03e4c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
exit 0
# hack umountfs script to cleanly unmount live systems

sed \
    -e '/proc|procfs|linprocfs/ s/)/|squashfs|iso9660)/' \
    -e '/tmpfs)/ a\
			[ "$MTPT" != "/media" ] && \
			[ "$MTPT" != "/live" ] && \
			[ "$MTPT" != "/live/cow" ] &&
'   \
    -i /etc/init.d/umountfs