diff --git a/tools/prepare.sh b/tools/prepare.sh index c94b5104..961cb45e 100755 --- a/tools/prepare.sh +++ b/tools/prepare.sh @@ -9,3 +9,13 @@ if [ $SIZE -ne 0 ]; then else echo not patching $NAME fi; + +NAME=initrd.img +SIZE=`ls -ld "$NAME" | awk '{print $5 % 64}'` +if [ $SIZE -ne 0 ]; then + echo "$NAME: patching $SIZE Zero-Bytes" + dd if=/dev/zero of=zero.bin bs=1 count=$SIZE + cat zero.bin >> $NAME +else + echo not patching $NAME +fi;