[Pkg-sysvinit-devel] Bug#391605: [Pbuilder-maint] Bug#392136:
pbuilder: sysvinit's mounted lib/init/rw prevents cleanup
Roland Stigge
stigge at antcom.de
Tue Oct 17 12:55:44 CEST 2006
Hi,
Junichi Uekawa wrote:
> Why isn't this fixed in sysvinit ?
> I thought this was meant to fix it:
>
> sysvinit (2.86.ds1-28) unstable; urgency=low
>
> * Avoid mounting /lib/init/rw/ when being installed in a chroot
> environment. (Closes: #390126)
The respective change to sysvinit/initscripts:
+chrooted() {
+ if [ -r /proc/1/root ]; then
+ return 1
+ fi
+ return 0
+}
...
if dpkg --compare-versions "$PREV_VER" lt "2.86.ds1-27" \
- && [ ! -f /lib/init/rw/.ramfs ] ; then
+ && [ ! -f /lib/init/rw/.ramfs ] && ! chrooted ; then
[ -f /etc/default/tmpfs ] && . /etc/default/tmpfs
etc. doesn't work with debootstrap. chrooted() evaluates the existence
of /proc/1/root. Consider debootstrap's second_stage_install (): It
first mounts /proc into the chroot (setup_proc()) and then installs
initscripts where postinst (mounting /lib/init/rw in this case) is called.
bye,
Roland
More information about the Pkg-sysvinit-devel
mailing list