[Pkg-sysvinit-devel] Bug#626846: initscripts: doesn't correctly detect chroot on GNU/kFreeBSD

Aurelien Jarno aurel32 at debian.org
Sun May 15 20:35:07 UTC 2011


Package: initscripts
Version: 2.88dsf-13.6
Severity: serious

On GNU/kFreeBSD, /proc/1/root is a real symlink, that is it's not 
possible to do a stat on it and compare it to the stat of /.

As a consequence the new initscript postinst is bind mounting /var/run
and /var/lock inside the chroots, causing a lot of issues on the build
daemons.

I think we should stop of having yet another similar but not exactly 
version of the code to detect a chroot in a postinst, and that it's time
to find a better solution for that. I am currently writing an "ischroot"
program that will detect if running in a chroot or not, and I am planning
to submit it as a bug to debianutils. This way if we find a problem, or if
we want to support a new system, there will be only one version to change.





More information about the Pkg-sysvinit-devel mailing list