[elbe-devel] [PATCH 1/3] examples armel-rescue-busybox-cpio: use <file> -> better + workaround bug

Torben Hohn torben.hohn at linutronix.de
Wed Oct 2 11:31:57 CEST 2019


the current buster qemu has a bug: when busybox calls exec('/proc/self')
this will try to exec qemu, which will result in a desaster, because it
expects to exec busybox.

This only happens with busybox. So this problem shows in diet mode,
finetuning, where busybox shell is used.

There is <file> now, which is the better solution. This old file should
be added to the future test cases, which can not serve as examples.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 examples/armel-rescue-busybox-cpio.xml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/examples/armel-rescue-busybox-cpio.xml b/examples/armel-rescue-busybox-cpio.xml
index 4b30d89d2..76ae45c4b 100644
--- a/examples/armel-rescue-busybox-cpio.xml
+++ b/examples/armel-rescue-busybox-cpio.xml
@@ -69,9 +69,10 @@
 			<mknod opts="c 5 1">/dev/console</mknod>
 			<mknod opts="c 1 3">/dev/null</mknod>
 			<!-- Add start script (may be moved to archive) -->
-			<command>echo "#!/bin/sh" | tee    /etc/init.d/rcS</command>
-			<command>echo "mount -a"  | tee -a /etc/init.d/rcS</command>
-			<command>chmod +x /etc/init.d/rcS</command>
+			<file dst="/etc/init.d/rcS" mode="755">
+				#!/bin/sh
+				mount -a
+			</file>
 			<!-- Delete documentation and unused files -->
 			<rm>/usr/share</rm>
 		</finetuning>
-- 
2.20.1




More information about the elbe-devel mailing list