From 8dcda0e05b0109e12280c446070b1fa94d0a6b4b Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Mon, 12 Nov 2018 10:07:52 +0100 Subject: Add uefi to vyos-build --- data/live-build-config/hooks/live/10-unmountfs.chroot | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 data/live-build-config/hooks/live/10-unmountfs.chroot (limited to 'data/live-build-config/hooks/live/10-unmountfs.chroot') diff --git a/data/live-build-config/hooks/live/10-unmountfs.chroot b/data/live-build-config/hooks/live/10-unmountfs.chroot new file mode 100755 index 00000000..7992a4d2 --- /dev/null +++ b/data/live-build-config/hooks/live/10-unmountfs.chroot @@ -0,0 +1,12 @@ +#!/bin/sh + +# 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 -- cgit v1.2.3