From 84418988d1beb94079e0b522f5b205365bcab02c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 10 Oct 2024 16:32:34 -0400 Subject: [PATCH] mkimage: Remove device nodes Closes: https://github.com/bitnami/minideb/issues/171 Signed-off-by: Colin Walters --- mkimage | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkimage b/mkimage index 53676a1d..91d6f6b1 100755 --- a/mkimage +++ b/mkimage @@ -288,6 +288,8 @@ if use_qemu_static ; then touch -d "$usr_bin_modification_time" "$rootfsDir"/usr/bin fi +# Clean up device nodes that make no sense in the image +rm "$rootfsDir/dev/*" -rf tar cf "$TARGET" -C "$rootfsDir" . rm -r "$rootfsDir" rm -r "$DEBOOTSTRAP_DIR"