X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Flive-helpers;h=70c7f342a77243011b1370feb9b88d16e35e25f9;hb=268c4f38f81263be2cf7a400b30008cf214bc619;hp=619cbb407c500097cf291673f0467c564bcb6e75;hpb=31f40045de3ced9d6e30aaab4d18986534318090;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index 619cbb4..70c7f34 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -1,4 +1,3 @@ -#!/bin/sh # live-initramfs helper functions, used by live-initramfs on boot and by live-snapshot if [ ! -x "/bin/fstype" ] @@ -147,7 +146,7 @@ fs_size () mountp="/mnt/tmp_fs_size" mkdir -p "${mountp}" - mount -t $(get_fstype "${dev}") -o ro "${dev}" "${mountp}" + mount -n -t $(get_fstype "${dev}") -o ro "${dev}" "${mountp}" doumount=1 fi @@ -190,7 +189,15 @@ setup_loop () local readonly=${6} modprobe -q -b "${module}" - udevsettle + + if [ -x /sbin/udevadm ] + then + # lenny + udevadm settle + else + # etch + udevsettle + fi for loopdev in ${pattern} do @@ -267,10 +274,10 @@ try_mount () if [ -n "${old_mountp}" ] then - mount -o remount,"${opts}" "${dev}" "${old_mountp}" || panic "Remounting ${dev} ${opts} on ${old_mountp} failed" - mount -o bind "${old_mountp}" "${mountp}" || panic "Cannot bind-mount ${old_mountp} on ${mountp}" + mount -n -o remount,"${opts}" "${dev}" "${old_mountp}" || panic "Remounting ${dev} ${opts} on ${old_mountp} failed" + mount -n -o bind "${old_mountp}" "${mountp}" || panic "Cannot bind-mount ${old_mountp} on ${mountp}" else - mount -t $(get_fstype "${dev}") -o "${opts}" "${dev}" "${mountp}" || panic "Cannot mount ${dev} on ${mountp}" + mount -n -t $(get_fstype "${dev}") -o "${opts}" "${dev}" "${mountp}" || panic "Cannot mount ${dev} on ${mountp}" fi }