View Single Post
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#2699
@estel - I didn't try the latest version, but in the one i have here, there is a bug in qchroot, causing the infinite (almost) mounting when easy debian is on external sd card (as a directory) and the partition in question is mounted in /media .

here is my fix, in /sbin/qchroot, hope it will be helpful
Code:
#Any external devices
  echo ... >/dev/stderr
  if [ `echo $CHROOT | grep '/media/mmc'` = $CHROOT ]; then
    # We are using directory on eMMC or on SD card so skip our partition from mounting
    MNTPART=`echo $CHROOT | cut -f 3 -d /`
    MNTD=`cat /proc/mounts  | grep -v /media/$MNTPART |  grep ' /media/' | awk '{print $2}'`
  else
    MNTD=`cat /proc/mounts | grep ' /media/'|awk '{print $2}'`
  fi
  for MDRV in $MNTD ; do
    echo Mounting $MDRV
    if [ ! -d "$CHROOT$MDRV" ] ; then
      mkdir -p "$CHROOT$MDRV"
    fi
    mount -o bind "$MDRV" "$CHROOT$MDRV"
  done
 

The Following 4 Users Say Thank You to freemangordon For This Useful Post: