mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
13 lines
282 B
Bash
Executable File
13 lines
282 B
Bash
Executable File
#!/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
|