[Bug 523688] Re: postinst calls start(8) instead of invoke-rc.d(8), ignores policy-rc.d(8).

Mattia Rizzolo mattia at mapreri.org
Sat Aug 29 11:40:55 UTC 2015


Acting the same as https://bugs.debian.org/571054

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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pbuilder in Ubuntu.
https://bugs.launchpad.net/bugs/523688

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

Status in live-helper package in Ubuntu:
  Fix Released
Status in pbuilder package in Ubuntu:
  Invalid
Status in live-helper package in Debian:
  Fix Released
Status in pbuilder package in Debian:
  Fix Released

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
  ProcEnviron:
   LC_COLLATE=C
   PATH=(custom, no user)
   LANG=C
   SHELL=/bin/bash
  SourcePackage: apport
  Uname: Linux 2.6.24-23-openvz x86_64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/live-helper/+bug/523688/+subscriptions



More information about the foundations-bugs mailing list