Re: [systemd-devel] systemd-nspawn for ubuntu 12.04 with upstart

2016-11-18 Thread Lennart Poettering
On Fri, 18.11.16 02:55, Masoom Shaikh (mshaikh2...@outlook.com) wrote:

> I have a container using debootstrap for Ubuntu 12.04
> 
> systemd-nspawn -D ubuntu_12.04 works
> 
> 
> but I want it with boot option
> 
> systemd-nspawn -bD ubuntu_12.04
> 
> this doesn't give a console!
> 
> 
> read somewhere, it might be related to older ubuntu's looking for /dev/tty1 
> et.al. where as systemd provides /dev/console
> 
> no sure how to modify upstart to use /dev/console
> 
> 
> does any body use systemd-spawn for older ubuntu? This is on ArchLinux.
> 
> 
> I guess it is not surprise LXC works fine.

To my knowledge the LXC scripts patch around in the image ot make it
run nicely in a container environment. We don't do that with systemd,
and we nspawn won't fake /dev/tty1 ttys, simply for the reason that we
cannot properly emulate a VT with all its ioctls and escape
sequences.

You might be able to patch aroundin upstarts config files and make it
start a tty on /dev/console rather than /dev/tty1.

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] systemd-nspawn for ubuntu 12.04 with upstart

2016-11-17 Thread Masoom Shaikh
I have a container using debootstrap for Ubuntu 12.04

systemd-nspawn -D ubuntu_12.04 works


but I want it with boot option

systemd-nspawn -bD ubuntu_12.04

this doesn't give a console!


read somewhere, it might be related to older ubuntu's looking for /dev/tty1 
et.al. where as systemd provides /dev/console

no sure how to modify upstart to use /dev/console


does any body use systemd-spawn for older ubuntu? This is on ArchLinux.


I guess it is not surprise LXC works fine.


- Matt
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel