[elbe-devel] [PATCH v3] examples x86_64-pc-rescue-busybox-dyn-cpio: use <file>

bage at linutronix.de bage at linutronix.de
Mon Oct 14 18:23:07 CEST 2019


From: Bastian Germann <bage at linutronix.de>

7c703f526be6 ("examples armel-rescue-busybox-cpio: use <file> -> better +
workaround bug") introduced <file> for one cpio example.

Another cpio example does not write a file because the commands fails,
which is reported as #226.  This will not be fixed anytime soon, so work around
the issue by using <file> to create the file.

running cmd +chroot /var/cache/elbe/eec456e0-0fd1-45c9-b92f-e9a5616a1c50/target /bin/sh with STDIN echo "#!/bin/sh" | tee    /etc/init.d/rcS+
------------------------------------------------------------------------------
------------------------------------------------------------------------------

Command failed with errorcode 1
Finetuning Error, trying to continue anyways
running cmd +chroot /var/cache/elbe/eec456e0-0fd1-45c9-b92f-e9a5616a1c50/target /bin/sh with STDIN echo "mount -a"  | tee -a /etc/init.d/rcS+
------------------------------------------------------------------------------
qemu: unknown option 'a'
------------------------------------------------------------------------------

Command failed with errorcode 1
Finetuning Error, trying to continue anyways
running cmd +chroot /var/cache/elbe/eec456e0-0fd1-45c9-b92f-e9a5616a1c50/target /bin/sh with STDIN chmod +x /etc/init.d/rcS+
------------------------------------------------------------------------------
chmod: /etc/init.d/rcS: No such file or directory
------------------------------------------------------------------------------

Command failed with errorcode 1
Finetuning Error, trying to continue anyways

Signed-off-by: Bastian Germann <bage at linutronix.de>
---
 examples/x86_64-pc-rescue-busybox-dyn-cpio.xml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/examples/x86_64-pc-rescue-busybox-dyn-cpio.xml b/examples/x86_64-pc-rescue-busybox-dyn-cpio.xml
index 6b9496db..a4b8598a 100644
--- a/examples/x86_64-pc-rescue-busybox-dyn-cpio.xml
+++ b/examples/x86_64-pc-rescue-busybox-dyn-cpio.xml
@@ -70,9 +70,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