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"