From fbd2ce5cb019956f506946a1971621877b9695d7 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 24 Dec 2008 10:33:36 -0800 Subject: Fix usb image's size detection Conversion issue when dropping mkusbimg. Use work_dir/iso to get the proper image size Signed-off-by: Aaron Griffin --- archiso/mkarchiso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archiso/mkarchiso') diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 469bd08..6ca68d1 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -261,7 +261,7 @@ command_usb () { fsimg="${imgname}.part1" # ext2 overhead's upper bound is 6%, empirically tested up to 1GB - rootsize=$(du -bs ${IMGROOT}|cut -f1) + rootsize=$(du -bs "${work_dir}/iso" | cut -f1) imgsz=$(( (${rootsize}*106)/100/512 + 1)) # image size in sectors # create the filesystem image file -- cgit v1.2.3-70-g09d2