[elbe-devel] [PATCH 1/2] elbepack: initvm-devel: allow root login with password

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Apr 29 11:21:36 CEST 2024


To use "./elbe initvm sync" the initvm needs to accept root login with
passwords. Enable the setting in the devel-mode initvm.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/init/init-elbe.sh.mako | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/elbepack/init/init-elbe.sh.mako b/elbepack/init/init-elbe.sh.mako
index 35576f7bc7a1..fe0c3a4070b8 100644
--- a/elbepack/init/init-elbe.sh.mako
+++ b/elbepack/init/init-elbe.sh.mako
@@ -47,6 +47,8 @@ in-target update-initramfs -u
    tar xj -f elbe-devel.tar.bz2 -C /buildenv/var/cache/elbe/devel
    echo "export PATH=/var/cache/elbe/devel:\$PATH" > /buildenv/etc/profile.d/elbe-devel-path.sh
    sed -i s%/usr/bin/elbe%/var/cache/elbe/devel/elbe% /buildenv/lib/systemd/system/python3-elbe-daemon.service
+
+   echo 'PermitRootLogin yes' >> /buildenv/etc/ssh/sshd_config
 % endif
 
 # since elbe fetch_initvm_pkgs generates repo keys,

-- 
2.44.0



More information about the elbe-devel mailing list