X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=f6b8b8bf15fbe75c69ee1e3243b121f520d5bb0f;hb=78ba9317d08612a3ab6b838e03240dc48be9c9f6;hp=a935001509056e9775428d098953e06216e59a8a;hpb=a4b49df943941b4c9feb1acb97d0a2a5d3c723b7;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index a935001..f6b8b8b 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -275,7 +275,11 @@ try_mount () if [ -n "${old_mountp}" ] then - mount -o remount,"${opts}" "${dev}" "${old_mountp}" || panic "Remounting ${dev} ${opts} on ${old_mountp} failed" + if [ "${opts}" != "ro" ] + then + mount -o remount,"${opts}" "${dev}" "${old_mountp}" || panic "Remounting ${dev} ${opts} on ${old_mountp} failed" + fi + mount -o bind "${old_mountp}" "${mountp}" || panic "Cannot bind-mount ${old_mountp} on ${mountp}" else if [ -z "${fstype}" ]