touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #05022
Re: [Bug 430224] Re: init: support chroots
On 19 June 2014 14:15, Dashamir Hoxha <430224@xxxxxxxxxxxxxxxxxx> wrote:
> Just for the record, when I install Ubuntu Trusty (14.04) as a chroot
> inside Ubuntu Trusty (14.04) this problem does not happen. The problem
> here is with starting mysql inside the chroot: `service mysql start`. It
> tries to start the mysql of the main (host) system.
>
> The easy workaround for this (which was not so easy for me to find) is to start mysql like this: `/etc/init.d/mysql start`
> I hope this is useful to someone, since "systemd" may need some time to become working and stable. By the way, I tried to test it on 14.04 and it didn't work.
>
In 14.04, chroot support in upstart is turned off by default, to
enable please boot with "--chroot-sessions" kernel cmdline option
(which is passed to init) see $ man 8 init , for more details. After
that "service mysql start" will work inside the chroot.
However, instead of using chroots I strongly recommend for you to use
lxc container, which is almost as lightweight as chroot, but has extra
protections against affecting the host system and it has fully working
upstart inside.
--
Regards,
Dimitri.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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