[elbe-devel] [PATCH 3/6] initvm: save debian-installer log
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Thu Feb 22 14:22:10 CET 2024
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/init/Makefile.mako | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/elbepack/init/Makefile.mako b/elbepack/init/Makefile.mako
index e32ec9f612be..71272f382a38 100644
--- a/elbepack/init/Makefile.mako
+++ b/elbepack/init/Makefile.mako
@@ -73,7 +73,10 @@ $(BASE): $(INITRD)
-initrd $(INITRD) \
-append 'root=/dev/$(HD_NAME) debconf_priority=critical console=$(CONSOLE) DEBIAN_FRONTEND=text' \
-no-reboot \
- -nographic \
+ -display none \
+ -monitor none \
+ -serial stdio \
+ -serial file:installer.log \
-device virtio-net-pci,netdev=user.0,mac="${nicmac}" \
-netdev user,id=user.0 \
-m $(MEMSIZE) \
@@ -92,10 +95,11 @@ $(BASE): $(INITRD)
)
$(INITRD): $(INITRD_FILES)
- mkdir -p $(IN)/initrd-tree/usr/lib/base-installer.d
+ mkdir -p $(IN)/initrd-tree/usr/lib/base-installer.d $(IN)/initrd-tree/lib/debian-installer-startup.d
echo 'mkdir -p /target/etc/apt/trusted.gpg.d/; cp /usr/share/keyrings/elbe-keyring.gpg /target/etc/apt/trusted.gpg.d/' > $(IN)/initrd-tree/usr/lib/base-installer.d/10copyelbekeyring
- chmod 755 $(IN)/initrd-tree/usr/lib/base-installer.d/*
- mkdir -p .elbe-gen
+ echo "echo 'ttyS1::respawn:/usr/bin/tail -n +0 -f /var/log/syslog' >> /etc/inittab; kill -HUP 1" > $(IN)/initrd-tree/lib/debian-installer-startup.d/S10serial-log
+ chmod 755 $(IN)/initrd-tree/usr/lib/base-installer.d/* $(IN)/initrd-tree/lib/debian-installer-startup.d/*
+ mkdir -p $(GEN)
gzip -cd $(IN)/initrd.gz > $(GEN)/initrd-preseeded
cd $(IN)/initrd-tree && find . | cpio -H newc -o --append -F ../../$(GEN)/initrd-preseeded
gzip -9f $(GEN)/initrd-preseeded
--
2.43.2
More information about the elbe-devel
mailing list