X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F05mountpoints;h=028c74b543c24fd8d894ca3f95c678e407a53b83;hb=d4d405c801ce02cbce524c887cc07ef55517c8c6;hp=36c29724fe8ea094e1ba78da25836f497a4ad680;hpb=0a854a1e9307affdeaf96cb3ec0c864b171d66ca;p=live-boot-grml.git diff --git a/scripts/live-bottom/05mountpoints b/scripts/live-bottom/05mountpoints index 36c2972..028c74b 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 +if [ ! -d /root/live/image ]; then + mkdir -p /root/live/image + mount -n --move /live/image /root/live/image fi log_end_msg