Comment 3 for bug 619783

Revision history for this message
Wookey (wookey) wrote :

This problem has been worked-around/fixed in multistrap by dealing with the general case of installing services into chroots. It now contains a chroot.sh script which can be run when creating a chroot. This does the same thing that debootstrap does, and replaces initctl and start-stop-daemon with fakes which do nothing but print an 'I have been nobbled' message.

It would be better to do this via policyrc.d as _all_ services should use that, and any that don't need fixing immediately.

Whilst this fixes the simple case of chroot creation, it does not fix the problem of installing services into an image which is to be a real image (cross or otherwise), but you still don't want those services starting things or binding to things on the build system (or changing your sysctl settings in the case of procps) during image-creation. But you _do_ want those things to run properly on first-boot. How best to manage this warrants further discussion, but maybe this isn't the place.