X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2iso;h=dc2303600f77c32fd6dbcaa54ca8c197d1bfde82;hp=3e48b35517235f15c999dfd043dd82487e4ea210;hb=f1cfc39202809f9172c7c1b833f6392f0ac23e5d;hpb=939e6a970373e81e4f6a5d5ae65580dc2df40fe2 diff --git a/grml2iso b/grml2iso index 3e48b35..dc23036 100755 --- a/grml2iso +++ b/grml2iso @@ -248,8 +248,8 @@ Options: # pad the output ISO to multiples of 256 KiB for partition table support {{{ siz=$($getfilesize "$ISOFILE") - cyls=$(echo "$siz / 512 / 32 / 16 + 1" | bc) # C=$cyls H=16 S=32 - ofs=$(echo "$cyls * 16 * 32 * 512 - 1" | bc) # padding offset (size - 1) + cyls=$(($siz / 512 / 32 / 16 + 1)) # C=$cyls H=16 S=32 + ofs=$(($cyls * 16 * 32 * 512 - 1)) # padding offset (size - 1) dd if=/dev/zero bs=1 count=1 seek=$ofs of="$ISOFILE" 2>/dev/null # }}}