mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-05-11 08:23:51 +00:00
Remove annoying output of dd
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd /tmp
|
||||
|
||||
cat > initrd.img
|
||||
@@ -9,7 +11,7 @@ SIZE4=$(( $SIZE / 4 \* 4 ))
|
||||
DIFF=$(( $SIZE - $SIZE4 ))
|
||||
[ $DIFF -ne 0 ] && DIFF=$(( 4 - $DIFF ))
|
||||
|
||||
dd if=/dev/zero bs=1 count=$DIFF of=zeropad
|
||||
dd if=/dev/zero bs=1 count=$DIFF of=zeropad 2>/dev/null
|
||||
|
||||
cat zeropad >> initrd.img
|
||||
|
||||
|
||||
Reference in New Issue
Block a user