[elbe-devel] [PATCH v2] init: spawn console for ttyS0 for systemd based systems

Manuel Traut manut at linutronix.de
Thu Apr 4 09:06:59 CEST 2019


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 systemd symlink.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---

changes since v1: create link unconditional

 elbepack/init/init-elbe.sh.mako | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/elbepack/init/init-elbe.sh.mako b/elbepack/init/init-elbe.sh.mako
index 81f6b454..8fb0e6d6 100644
--- a/elbepack/init/init-elbe.sh.mako
+++ b/elbepack/init/init-elbe.sh.mako
@@ -33,10 +33,7 @@ mkdir -p /buildenv/var/cache/elbe
 cp source.xml /buildenv/var/cache/elbe/
 cp /etc/apt/apt.conf /buildenv/etc/apt/apt.conf.d/50elbe
 
-
-% if prj.text('suite') == 'jessie':
 ln -s /lib/systemd/system/serial-getty at .service /buildenv/etc/systemd/system/getty.target.wants/serial-getty at ttyS0.service
-% endif
 
 mkdir /buildenv/var/cache/elbe/installer
 cp initrd-cdrom.gz /buildenv/var/cache/elbe/installer
-- 
2.20.1




More information about the elbe-devel mailing list