X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=70c7f342a77243011b1370feb9b88d16e35e25f9;hb=268c4f38f81263be2cf7a400b30008cf214bc619;hp=fdf7b38efa5fa88d490ba618cb3869f984295b1d;hpb=f7f71ad15e3cfa56b4bb79f1552281d93c5cd215;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index fdf7b38..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 @@ -275,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 }