X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F05mountpoints;h=82cc7c380c1cf24013c3c270132adc2b8c7c8778;hb=cdb98bbbdc41b29c6b94dc5aed36393daec84cf8;hp=36c29724fe8ea094e1ba78da25836f497a4ad680;hpb=0a854a1e9307affdeaf96cb3ec0c864b171d66ca;p=live-boot-grml.git diff --git a/scripts/live-bottom/05mountpoints b/scripts/live-bottom/05mountpoints index 36c2972..82cc7c3 100755 --- a/scripts/live-bottom/05mountpoints +++ b/scripts/live-bottom/05mountpoints @@ -1,29 +1,35 @@ #!/bin/sh -PREREQ="" -DESCRIPTION="Moving mount points..." +#set -e -. /scripts/live-functions +# initramfs-tools header + +PREREQ="" prereqs() { - echo "$PREREQ" + echo "${PREREQ}" } -case $1 in -# get pre-requisites -prereqs) - prereqs - exit 0 - ;; +case "${1}" in + prereqs) + prereqs + exit 0 + ;; esac -log_begin_msg "$DESCRIPTION" +# live-initramfs header + +. /scripts/live-functions + +log_begin_msg "Moving mount points..." + +# live-initramfs script # Move to the new root filesystem so that programs there can get at it. if [ ! -d /root/live_media ]; then mkdir -p /root/live_media - mount -n -o move /live_media /root/live_media + mount -n --move /live_media /root/live_media fi log_end_msg