X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F05mountpoints;h=ce151e19e8493a91a0e0a8c0dc52d3c5fc9454b4;hb=088e23d8225c53f92bc12125d95a11e165869a9a;hp=411660de583463e2f8bac8ed89b7829a6f9ae205;hpb=9fc9e2a1a11b0edada38cb501fefe4f58aa414ac;p=live-boot-grml.git diff --git a/scripts/live-bottom/05mountpoints b/scripts/live-bottom/05mountpoints index 411660d..ce151e1 100755 --- a/scripts/live-bottom/05mountpoints +++ b/scripts/live-bottom/05mountpoints @@ -1,27 +1,36 @@ #!/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 --move /live/image /root/live/image +fi log_end_msg