X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=usr_sbin%2Fgrml-chroot;h=e9c1ae35e054d780f04af08171f5110bc1c1a703;hb=0bbd68b7667067039536f8e5eed9a49b154840fc;hp=17f3d3c234905d1e20190eaa1811acd78679bc99;hpb=5d1738df71416648a80cc1873f795b7f1f70407b;p=grml-scripts.git diff --git a/usr_sbin/grml-chroot b/usr_sbin/grml-chroot index 17f3d3c..e9c1ae3 100755 --- a/usr_sbin/grml-chroot +++ b/usr_sbin/grml-chroot @@ -45,8 +45,8 @@ function mountit local all_options_="" - if [[ $options_ == "--rbind" ]]; then - all_options_="--rbind $type_" + if [[ $options_ == "--bind" ]]; then + all_options_="--bind $type_" else all_options_="-t $type_ none" fi @@ -56,7 +56,7 @@ function mountit function umount_all { for i in $MOUNTED_; do - umount --recursive "${DEST_}/$i" + umount "${DEST_}/$i" done } @@ -87,7 +87,7 @@ fi mountit "proc" "proc" mountit "sysfs" "sys" -mountit "/dev" "dev" "--rbind" +mountit "/dev" "dev" "--bind" WROTE_DEBIAN_CHROOT="" if [ ! -f "$DEST_"/etc/debian_chroot ]; then