postinst calls start(8) instead of invoke-rc.d(8), ignores policy-rc.d(8).

Bug #523688 reported by Trent W. Buck
This bug affects 2 people
Affects Status Importance Assigned to Milestone
live-helper (Debian)
Fix Released
live-helper (Ubuntu)
Fix Released
pbuilder (Debian)
Fix Released
pbuilder (Ubuntu)

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/upstart: Connection refused

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
PackageArchitecture: all
 PATH=(custom, no user)
SourcePackage: apport
Uname: Linux 2.6.24-23-openvz x86_64

Revision history for this message
Trent W. Buck (twb) wrote :
Revision history for this message
Trent W. Buck (twb) wrote :

Acting upon information received, I have filed and

This malone ticket should probably be linked to those debbugs tickets,
and reassigned to pbuilder.

Colin Watson (cjwatson)
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
Revision history for this message
Colin Watson (cjwatson) wrote :

Fixed in live-helper 2.0~a9-1, per the Debian bug, and thus in maverick.

Changed in live-helper (Ubuntu):
status: Triaged → Fix Released
Changed in pbuilder (Debian):
status: Confirmed → Fix Released
Revision history for this message
Mattia Rizzolo (mapreri) wrote :

Acting the same as

Maybe the reasons can be considered different: the problem does not hold anymore, it's quite old and the affected releases are EOL.

Changed in pbuilder (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.