Releasing debian version 2.0~a2-1.
[debian-live-boot/hramrach.git] / scripts / live-bottom / 16umountfs
blob055c3f63c5ac82413866843e1c5eadee5de0afbe
1 #!/bin/sh
3 #set -e
5 # initramfs-tools header
7 PREREQ=""
9 prereqs()
11 echo "${PREREQ}"
14 case "${1}" in
15 prereqs)
16 prereqs
17 exit 0
19 esac
21 # live-boot header
23 . /live.vars
25 . /scripts/live-functions
27 log_begin_msg "Disabling umountfs for live specific filesystems"
29 # live-boot script
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
38 log_end_msg