diskimage-builder/elements/dpkg
Thom Leggett 46a14ae0e6 Uses policy-rc.d to prevent dpkg starting daemons
Currently the dpkg element fakes start-stop-daemon, initctl and
invoke-rc.d to stop dpkg from starting a bunch of daemons in the
chroot. This is problematic when packages use service, start, stop or
restart commands.

This patch uses a policy-rc.d instead of faking invoke-rc.d to achieve
the same thing. This approach now aligns exactly with debootstrap.
Without this patch DIB runs on some debian distributions fail
when trying to umount the chroot loop device as there are daemons
running.

The log will now show "invoke-rc.d: policy-rc.d denied execution of
start." instead of "Warning: Fake invoke-rc.s called, doing nothing."

Change-Id: I6db192127aca19b5b7915179b781f5192078bfc7
Related-Bug: #1211564
2014-03-26 20:59:49 +00:00
..
bin Mark install-packages +x. 2014-01-07 07:54:47 -05:00
cleanup.d Uses policy-rc.d to prevent dpkg starting daemons 2014-03-26 20:59:49 +00:00
post-install.d Adds support for post-install scripts. 2013-04-17 09:47:51 +01:00
pre-install.d /bin/bash all the things. 2013-11-17 16:59:31 -06:00
root.d Uses policy-rc.d to prevent dpkg starting daemons 2014-03-26 20:59:49 +00:00
README.md Move the dpkg specific stuff to a dpkg element rather than being hardcoded. 2013-02-14 11:16:12 +13:00

Provide dpkg specific image building glue.

The ubuntu element needs customisations at the start and end of the image build process that do not apply to RPM distributions, such as using the host machine HTTP proxy when installing packages. These customisations live here, where they can be used by any dpkg based element.

The dpkg specific version of install-packages is also kept here.