Adding debian version 2.0~a1-1.
[live-boot-grml.git] / scripts / live-bottom / 16umountfs
1 #!/bin/sh
2
3 #set -e
4
5 # initramfs-tools header
6
7 PREREQ=""
8
9 prereqs()
10 {
11         echo "${PREREQ}"
12 }
13
14 case "${1}" in
15         prereqs)
16                 prereqs
17                 exit 0
18                 ;;
19 esac
20
21 # live-boot header
22
23 . /live.vars
24
25 . /scripts/live-functions
26
27 log_begin_msg "Disabling umountfs for live specific filesystems"
28
29 # live-boot script
30
31 if [ -e /root/etc/init.d/umountfs ]
32 then
33         sed -i  -e 's#pioodl $TMPFS_MTPTS)#pioodl $TMPFS_MTPTS | sed -e "s@\\ @\\n@" | grep -v ^/live)#' \
34                 -e 's#pioodl $REG_MTPTS)#pioodl $REG_MTPTS | sed -e "s@\\ @\\n@" | grep -v ^/live | grep -v ^/filesystem) /#' \
35         /root/etc/init.d/umountfs
36 fi
37
38 log_end_msg