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