summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/16umountfs
blob: 64ad99da0a3ef08b25439aef1607b81b4498bacc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh

#set -e

# initramfs-tools header

PREREQ=""

prereqs()
{
	echo "${PREREQ}"
}

case "${1}" in
	prereqs)
		prereqs
		exit 0
		;;
esac

# live-initramfs header

. /live.vars

. /scripts/live-functions

log_begin_msg "Disabling umountfs for live specific filesystems"

# live-initramfs script

if [ -e /root/etc/init.d/umountfs ]
then
	sed -i	-e 's#pioodl $TMPFS_MTPTS)#pioodl $TMPFS_MTPTS | sed -e "s@\\ @\\n@" | grep -v ^/live)#' \
		-e 's#pioodl $REG_MTPTS)#pioodl $REG_MTPTS | sed -e "s@\\ @\\n@" | grep -v ^/live | grep -v ^/filesystem) /#' \
	/root/etc/init.d/umountfs
fi

log_end_msg