[Bug 430224] Re: init: support chroots

gouri stephane.gourichon_lpad at m4x.org
Sun Jun 1 10:43:56 UTC 2014


# Workaround and future

It may be of interest to observe that future releases of Ubuntu (after 14.04) will no longer use upstart but systemd.
Ref: [Mark Shuttleworth » Blog Archive » Losing graciously](http://www.markshuttleworth.com/archives/1316)

In the strict context of this bug report which aims at having traditional chroot work in an upstart context, this information should be considered a workaround at best.
In the broader context of making some software future-proof, systemd seems like the target to study. Systemd provides containers which can be thought of like "chroot done right".

Good news is: it appears one can test systemd with existing Ubuntu
releases (from 13.04 onward, I haven't tested myself):

* [How can I replace upstart with systemd? - Ask Ubuntu](http://askubuntu.com/questions/420917/how-can-i-replace-upstart-with-systemd)
* [systemd - Ubuntu Wiki](https://wiki.ubuntu.com/systemd)

Thank you for your attention.

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

Title:
  init: support chroots

Status in Release Notes for Ubuntu:
  Fix Released
Status in Upstart:
  Fix Released
Status in “upstart” package in Ubuntu:
  Fix Released
Status in “upstart” source package in Karmic:
  Won't Fix

Bug description:
  Binary package hint: upstart

  $ sudo chroot /media/karmic dpkg --configure -a
  Setting up cups (1.4.1-1) ...
  update-rc.d: warning: /etc/init.d/cups missing LSB information
  update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
  Rather than invoking init scripts through /etc/init.d, use the service(8)
  utility, e.g. service cups start

  Since the script you are attempting to invoke has been converted to an
  Upstart job, you may also use the start(8) utility, e.g. start cups
  start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
  invoke-rc.d: initscript cups, action "start" failed.
  dpkg: error processing cups (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   cups

  
  WORKAROUND: Create an executable /media/karmic/usr/sbin/policy-rc.d with this in it:
  #!/bin/sh
  exit 101

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-release-notes/+bug/430224/+subscriptions



More information about the foundations-bugs mailing list