[elbe-devel] [PATCH 02/10] init: spawn console for ttyS0 for systemd based systems
Torben Hohn
torben.hohn at linutronix.de
Wed Apr 3 17:33:19 CEST 2019
On Wed, Apr 03, 2019 at 12:34:50PM +0200, Manuel Traut wrote:
> If a stretch initvm was built no serial console was spawned on ttyS0.
> This is the reason why libvirt is not able to communicate with the
> initvm and 'elbe initvm attach/stop' doesn't work.
>
> Create the ttyS0 symlink for all debian releases but not wheezy that
> is using sysvinit.
>
> Signed-off-by: Manuel Traut <manut at linutronix.de>
this is not much better than the old code.
except that it works for stretch.
i should be a comparison of versions, i think.
but since we can not even build a jessie initvm anymore,
this is should just go away, and we should be linking
unconditionally.
> ---
> elbepack/init/init-elbe.sh.mako | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/elbepack/init/init-elbe.sh.mako b/elbepack/init/init-elbe.sh.mako
> index 81f6b454..a78144da 100644
> --- a/elbepack/init/init-elbe.sh.mako
> +++ b/elbepack/init/init-elbe.sh.mako
> @@ -34,7 +34,7 @@ cp source.xml /buildenv/var/cache/elbe/
> cp /etc/apt/apt.conf /buildenv/etc/apt/apt.conf.d/50elbe
>
>
> -% if prj.text('suite') == 'jessie':
> +% if prj.text('suite') != 'wheezy':
> ln -s /lib/systemd/system/serial-getty at .service /buildenv/etc/systemd/system/getty.target.wants/serial-getty at ttyS0.service
> % endif
>
> --
> 2.20.1
>
--
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/kontakt/Datenschutz.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20190403/cd684096/attachment.sig>
More information about the elbe-devel
mailing list