← Back to team overview

touch-packages team mailing list archive

Re: [Bug 1351306] Re: Cannot uninstall upstart and install systemd-sysv

 

On Fri, Aug 01, 2014 at 02:13:18PM -0000, Dimitri John Ledkov wrote:
> At the moment we'd want to support for people to install systemd-sysv,
> and easily revert back to upstart.

> Ideally, systemd-sysv would not conflict with upstart, instead it would
> dpkg divert /sbin/init to /sbin/init.upstart and install /sbin/init
> which is systemd. That way people can still boot into upstart with
> init=/sbin/init.upstart and trivially revert back by removing systemd-
> sysv package.

Diversions are a bad scene; almost no one gets their handling right on
removal.  They shouldn't be in maintainer scripts at all, they should be
declarative within dpkg, and it's messy because they're not.

So while diverting init isn't quite as bad as diverting, say, /bin/sh or
libc.so.6, I think a solution that *doesn't* require diversions, but can
instead use conflicts, is better.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to sysvinit in Ubuntu.
https://bugs.launchpad.net/bugs/1351306

Title:
  Cannot uninstall upstart and install systemd-sysv

Status in “avahi” package in Ubuntu:
  Fix Released
Status in “dbus” package in Ubuntu:
  Fix Released
Status in “plymouth” package in Ubuntu:
  Fix Released
Status in “sysvinit” package in Ubuntu:
  In Progress
Status in “upstart” package in Ubuntu:
  Triaged

Bug description:
  upstart is currently quite deeply wired into our dependencies. Even in
  a minimally bootstrapped chroot needs it, although this doesn't do any
  booting at all:

  # dpkg -P upstart
  dpkg: dependency problems prevent removal of upstart:
   initscripts depends on upstart.
   plymouth depends on upstart (>= 1.11-0ubuntu3).

  On a desktop the list is quite a bit longer:

   ubuntu-minimal depends on upstart.
   avahi-daemon depends on upstart (>= 0.6.7-4).
   friendly-recovery depends on upstart. (See bug 1351316, needs sysv/systemd script first)
   initscripts depends on upstart.
   ureadahead depends on upstart (>= 0.6.0). (No need to fix -- can just drop that along with upstart for systemd images, systemd has readahead built in)
   plymouth depends on upstart (>= 1.11-0ubuntu3).
   dbus depends on upstart (>= 0.6.3-6).
   unity-services depends on upstart.
   init depends on upstart. (Not important right now, switch to alternative deps once systemd is ready)

  Most of the latter probably don't need to; versioned depends might be
  converted into equivalent versioned breaks, for others an alternative
  dependency might be considered. The main exception is that we are
  using session upstart on the desktop (unity-services etc.), for this
  we probably need to split out an upstart-sysv (for /sbin/init, reboot,
  halt, etc., similar to systemd-sysv) or an upstart-core (similar to
  sysvinit-core vs. sysvinit).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1351306/+subscriptions


References