postinst calls start(8) instead of invoke-rc.d(8), ignores policy-rc.d(8).
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
live-helper (Debian) |
Fix Released
|
Unknown
|
|||
live-helper (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
pbuilder (Debian) |
Fix Released
|
Unknown
|
|||
pbuilder (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
policy-rc.d(8) can be used to prevent sysvinit services from booting.
This is particularly important within chroots.
In Debian Sid, I used pbuilder(8) to create a lucid "base.tgz" chroot.
I then used pbuilder --login to get a shell, and ran "apt-get install
apport". (I had heard that apport didn't just fire up a web browser,
and so I was trying to use it to report a bug in lucid's kernel.)
To my surprise, I found the postinst was trying to start a service:
Setting up apport (1.12-0ubuntu5) ...
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/
Luckily it failed, because I wasn't running upstart outside the
chroot. But it seems to me that either upstart's start(8) should
either honour policy-rc.d, or at least reinvent it.
I see five things that could happen here:
- I've misunderstood the error message. Flag MOREINFO.
- upstart already has a policy-rc.d equivalent, and apport needs to
be told to honor it in apport's postinst. Assign to apport.
- upstart already has a policy-rc.d equivalent, and pbuilder needs to
be told to create the appropriate "deny all" policy when creating
Ubuntu-based chroots. Assign to pbuilder.
- upstart has no policy-rc.d equivalent, and needs to grow one.
Assign to upstart.
- upstart has no policy-rc.d equivalent, and the upstart developers
think it doesn't need one. Flag WONTFIX and I get grumpier.
ProblemType: Bug
Architecture: amd64
Date: Thu Feb 18 08:25:52 2010
DistroRelease: Ubuntu 10.04
Package: apport 1.12-0ubuntu5
PackageArchitec
ProcEnviron:
LC_COLLATE=C
PATH=(custom, no user)
LANG=C
SHELL=/bin/bash
SourcePackage: apport
Uname: Linux 2.6.24-23-openvz x86_64
affects: | ubuntu → pbuilder (Ubuntu) |
Changed in pbuilder (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in live-helper (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in pbuilder (Debian): | |
status: | Unknown → Confirmed |
Changed in live-helper (Debian): | |
status: | Unknown → Fix Released |
Changed in pbuilder (Debian): | |
status: | Confirmed → Fix Released |
Acting upon information received, I have filed bugs.debian. org/571054 and http:// bugs.debian. org/571056
http://
This malone ticket should probably be linked to those debbugs tickets,
and reassigned to pbuilder.