Univention Bugzilla – Bug 33782
Check package manager support for installation in image builder
Last modified: 2014-06-12 09:20:00 CEST
During the image generation the packages are installed in a chroot. Some packages fail to install because the postinst expects the installed service to be running.
We should check whether there's a generic way to mask such errors (IIRC there was something for pbuilder in the past)
[18:10] <ogra_> Setting up libpam-systemd:armhf (202-0ubuntu8) ...
[18:10] <ogra_> All runlevel operations denied by policy
[18:10] <ogra_> invoke-rc.d: unknown initscript, /etc/init.d/systemd-logind not found.
[18:10] <ogra_> seems to have the same issue
[18:22] <ogra_> ah, libpam-systemd makes all other arches fail too
[18:24] <ogra_> slangasek, ^^^ is having an debian/*.init script mandatory with https://wiki.ubuntu.com/UpstartCompatibleInitScripts ?
[18:25] <slangasek> ogra_: cjwatson and I discussed this bug already; this is actually an unanticipated bug in invoke-rc.d
[18:25] <slangasek> so I'm working on fixing that
[18:25] <ogra_> (teh wikipage doesnt really say that)
[18:25] <ogra_> ah, k
[18:26] <slangasek> Debian policy does say that you shouldn't ship upstart jobs without corresponding init scripts; however, that's Debian, not Ubuntu
There's no generic way to fix this in Upstart. Alos 14.04 will be the last Ubuntu release before the make the move to systemd.
I've created a package univntion-ucc-bootstrap which ships a dummy init script for /etc/init.d/systemd-logind. This fixes the bootstrap with the systemd package that was uploaded to trusty this morning. It also allows us to add stub scripts for other Ubuntu-specific packages which have an Upstart job but not init script.
I intentionally did not patch them into the packages itself (like systemd in this case). This causes too much churn since we need to re-patch whenever these packages are modifid in Ubuntu.
I also added stub packages for modemmmager, whoopsie and ofono. This allows a full bootstrap of the desktop image and the kubuntu-desktop the package (previously the installation of these packages was prevented).
Verified: Dummy scripts are available and image generation works fine.
We should document that this package is required during image generation.
UCC 2.0 has been released:
If this error occurs again, please use "Clone This Bug".