[Buildd-tools-devel] Bug#329403: schroot: Clobbers files in the chroot without warning

Daniel Jacobowitz dan at debian.org
Wed Sep 21 15:28:28 UTC 2005


Package: schroot
Version: 0.1.5-1
Severity: important

When I upgraded to this version of schroot, it suddenly started modifying
files inside the chroot without saying so.  The man page documents the new
run-parts mechanism, but doesn't say anything about the new scripts which
modify /etc/passwd et cetera.

I was already taking care of this on my own, using FUSE to simulate bind
mounts.  As a result, writes to /chroot/etc/passwd also write to the system
/etc/passwd.  So the first time I ran schroot after upgrading, it created
/etc/debian_chroot in my host, and clobbered
passwd/group/shadow/resolv.conf.  I had to reboot to single user mode to
restore them from backup.

This is extremely rude behavior, and I'm not real happy that it came in
without any warning.  Meanwhile, I am rearranging my setup to make the
cloned copy read-only...

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc6
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages schroot depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libglib2.0-0                  2.8.0-1    The GLib library of C routines
ii  libpam0g                      0.76-23    Pluggable Authentication Modules l

schroot recommends no packages.

-- no debconf information




More information about the Buildd-tools-devel mailing list