# HG changeset patch # User Pascal Bellard # Date 1360485067 -3600 # Node ID 04a0a9b9df919c0ddd78c074b612dd961300c03a # Parent 37bba9d0be551221ed5d5006e24bc3c662c1159f tazlito: fix align_to_32bits for writeiso diff -r 37bba9d0be55 -r 04a0a9b9df91 tazlito --- a/tazlito Sat Feb 02 10:38:08 2013 +0100 +++ b/tazlito Sun Feb 10 09:31:07 2013 +0100 @@ -331,7 +331,7 @@ align_to_32bits() { local size - size=$(stat -c %s $1) + size=$(stat -c %s ${1:-/dev/null}) [ $(($size & 3)) -ne 0 ] && dd if=/dev/zero bs=1 count=$((4 - ($size & 3))) >> $1 2> /dev/null } @@ -369,7 +369,7 @@ echo "Creating rootfs.gz without compression... " cat /tmp/list | cpio -o -H newc > /rootfs.gz fi - align_to_32bits $2 + align_to_32bits /rootfs.gz echo 1 > /tmp/rootfs }