Remove annoying output of dd

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-01-19 14:28:48 +00:00
parent f483ed8814
commit 7fabca00bb
3 changed files with 10 additions and 6 deletions

View File

@@ -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