View Single Post
Posts: 86 | Thanked: 362 times | Joined on Dec 2007 @ Paris / France
#523
Hello,

Thanks for this neat hack.

Anyway i've got a little problem : i can't run 2 instances of "debbie" at the same time. This prevents me from running the Debian HW keys with any debian application (because xbindkeys is killed when the application is launched)

Here is how to reproduce :
Code:
n810-ebe ~ > debbie   
Starting Debian shell...
No chroot dir specified; using /debian
No image file or partition specified.
Setting up the chroot...
using image file: /media/mmc1/debian-final.img.ext2
fs type is ext2
Using ext2 file system
mounting /media/mmc1/debian-final.img.ext2 on the turbo-loop ;)
.../media/mmc1/debian-final.img.ext2 mounted on loop0
.
..
...
....
Everything set up, running chroot...
[user@chroot: /]
In a second term window (while leaving the first one open) :
Code:
n810-ebe ~ > debbie 
Starting Debian shell...
No chroot dir specified; using /debian
No image file or partition specified.
chroot set up already!
/debian/var/lock/chroot-complete already mounted here! Unmounting...
Closing the chroot...
...Killing chroot apps...
..Unmounting bound dirs...
..Unmounting chroot..
..Unmounting turbo loop (0)...
device-mapper: remove ioctl failed: Device or resource busy
Command failed
chroot closed.
Setting up the chroot...
using image file: /media/mmc1/debian-final.img.ext2
fs type is ext2
Using ext2 file system
mounting /media/mmc1/debian-final.img.ext2 on the turbo-loop ;)
device-mapper: reload ioctl failed: Device or resource busy
Command failed
mount: mounting /dev/dm-1 on /debian failed
.../media/mmc1/debian-final.img.ext2 mounted on loop1
.
mount: mounting /dev on /debian/dev failed
mount: mounting /proc on /debian/proc failed
..
mount: mounting none on /debian/dev/pts failed
mount: mounting /tmp on /debian/tmp failed
mount: mounting /var/tmp on /debian/var/tmp failed
...
....
mount: mounting /home/user on /debian/home/user failed
mount: mounting /var/run/dbus on /debian/var/run/dbus failed
Everything set up, running chroot...
chroot: cannot execute su: No such file or directory
Second command fails and the first one is killed with a message "Session terminated, killing shell... ...killed."

And then i'm left in a inconsistent state (some directories mounted, some other not), and I get a file /debian/var/lock/chroot-complete in my root filesystem

To have the thing work again, i need to manually clean all the mess (umounting remaining directories, removing the loop device and cleaning /debian)

From a quick look at the ezchroot script : it shouldn't do the "/debian/var/lock/chroot-complete already mounted here! Unmounting..." thing, because image is the same, but i didn't look any further


I'm using Chinook & last easy* packages :
Code:
ii  easy-chroot                                    0.1.2                              Scripts to mount and chroot into images/partitions
ii  easy-deb-chroot                                0.9.14                             Scripts to run Debian applications easily in maemo
Any idea ? and sorry for long post

Thanks,
Eric
 

The Following User Says Thank You to eber42 For This Useful Post: