[elbe-devel] [PATCH 02/10] init: spawn console for ttyS0 for systemd based systems

Manuel Traut manut at linutronix.de
Wed Apr 3 12:34:50 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 symlink for all debian releases but not wheezy that
is using sysvinit.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 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




More information about the elbe-devel mailing list