[buildd-tools-devel] Bug#557197: schroot -b doesn't work for chroots with type=block-device

Evan Broder broder at MIT.EDU
Fri Nov 20 07:46:47 UTC 2009


Package: schroot
Version: 1.3.1-1
Severity: important

If I use schroot -b to create a session of a chroot with
type=block-device, I get a valid chroot session name back, and the
chroot is setup, but it's not recorded in /var/lib/schroot/session,
and I can't then later run it.

debuild:~# cat /etc/schroot/chroot.d/device
[device-test]
type=block-device
description=device
groups=root,sbuild
root-groups=root,sbuild
device=/dev/debuild/karmic-amd64-sbuild
personality=linux
debuild:~# schroot -c device-test
(device-test)root at debuild:~# logout
debuild:~# schroot -bc device-test
device-test-c65868ea-3443-489b-ad63-cd4dc1434d69
debuild:~# schroot -rc device-test-c65868ea-3443-489b-ad63-cd4dc1434d69
E: device-test-c65868ea-3443-489b-ad63-cd4dc1434d69: Chroot not found
debuild:~# tree -x /var/lib/schroot
/var/lib/schroot
|-- mount
|   `-- device-test-c65868ea-3443-489b-ad63-cd4dc1434d69
|-- session
|-- union
|   |-- overlay
|   `-- underlay
`-- unpack

7 directories, 0 files
debuild:~# mount | grep device-test-c65868ea-3443-489b-ad63-cd4dc1434d69
/dev/mapper/debuild-karmic--amd64--sbuild on /var/lib/schroot/mount/device-test-c65868ea-3443-489b-ad63-cd4dc1434d69 type ext3 (rw)
proc on /var/lib/schroot/mount/device-test-c65868ea-3443-489b-ad63-cd4dc1434d69/proc type proc (rw)
/dev/pts on /var/lib/schroot/mount/device-test-c65868ea-3443-489b-ad63-cd4dc1434d69/dev/pts type none (rw,bind)
/dev/shm on /var/lib/schroot/mount/device-test-c65868ea-3443-489b-ad63-cd4dc1434d69/dev/shm type none (rw,bind)
/home on /var/lib/schroot/mount/device-test-c65868ea-3443-489b-ad63-cd4dc1434d69/home type none (rw,bind)
/tmp on /var/lib/schroot/mount/device-test-c65868ea-3443-489b-ad63-cd4dc1434d69/tmp type none (rw,bind)
/afs on /var/lib/schroot/mount/device-test-c65868ea-3443-489b-ad63-cd4dc1434d69/afs type none (rw,bind)

This doesn't occur with type=directory chroots.





More information about the Buildd-tools-devel mailing list