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

Torben Hohn torben.hohn at linutronix.de
Wed Oct 16 10:16:51 CEST 2019


On Mon, Oct 14, 2019 at 06:23:07PM +0200, bage at linutronix.de wrote:
> 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>

Reviewed-by: Torben Hohn <torben.hohn 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
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list