From 37578e323fcdafef219cf69d625d2328e1c68f1e Mon Sep 17 00:00:00 2001 From: Eric Chan Date: Tue, 6 Aug 2024 14:06:37 +1000 Subject: [PATCH] mkvirtdisk: Silence dd stderr msgs Signed-off-by: Eric Chan --- tools/mkvirtdisk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mkvirtdisk b/tools/mkvirtdisk index e87b69dd0..134de9d92 100755 --- a/tools/mkvirtdisk +++ b/tools/mkvirtdisk @@ -40,7 +40,7 @@ COUNT=$(( MEMSIZE / FDISK_LSIZE )) COUNT=$(( COUNT / MULTIPLE * MULTIPLE)) # Ensure COUNT is a multiple of sDDF transfer size and logical size # Create a file to act as a virtual disk -dd if=/dev/zero of=$DISK_IMAGE bs=$FDISK_LSIZE count=$COUNT +dd if=/dev/zero of=$DISK_IMAGE bs=$FDISK_LSIZE count=$COUNT 2> /dev/null POFFSET=$MULTIPLE @@ -78,5 +78,5 @@ mkfs.fat -C $BUILD_DIR/fat.img $(( (FS_COUNT * FDISK_LSIZE) / 1024 )) for i in $(seq 0 $(( NUM_PARTITIONS - 1 ))) do echo "Copying FAT filesystem to partition $i, seek=$((POFFSET + i * FS_COUNT)), count=$FS_COUNT, bs=$FDISK_LSIZE" - dd if=$BUILD_DIR/fat.img of=$DISK_IMAGE bs=$FDISK_LSIZE seek="$((POFFSET + i * FS_COUNT))" count=$FS_COUNT + dd if=$BUILD_DIR/fat.img of=$DISK_IMAGE bs=$FDISK_LSIZE seek="$((POFFSET + i * FS_COUNT))" count=$FS_COUNT 2> /dev/null done \ No newline at end of file