From 339b69cf3b5beda89dbaa073c2427447ef8323e5 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Tue, 11 Nov 2025 09:11:27 +0000 Subject: [PATCH] netboot: Ignore the removal of nonexistent file in mk-s390image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore the removal of nonexistent $image file. This removes the following error message: $ mk-s390image /var/lib/libvirt/images/hades/vmlinux-s390x out.img ... rm: cannot remove 'out.img': No such file or directory Reviewed-by: Jan Höppner Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- netboot/mk-s390image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netboot/mk-s390image b/netboot/mk-s390image index de8158c7..e7280972 100755 --- a/netboot/mk-s390image +++ b/netboot/mk-s390image @@ -44,7 +44,7 @@ cleanup() fi if [ -n "$image" ] && [ "$success" = no ] then - rm -- "$image" + rm -f -- "$image" fi } trap cleanup EXIT