Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-12-24 10:33:36 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2008-12-24 10:33:36 -0800
commitfbd2ce5cb019956f506946a1971621877b9695d7 (patch)
treeb0d1b1e50879ced0598541472b9c240c10818f2c /archiso/mkarchiso
parent29d05d6bea4d370f7645fa1f5631bb020d670fa9 (diff)
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 <aaronmgriffin@gmail.com>
Diffstat (limited to 'archiso/mkarchiso')
-rwxr-xr-xarchiso/mkarchiso2
1 files changed, 1 insertions, 1 deletions
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