From: S.Çağlar Onur Date: Mon, 25 Oct 2010 21:26:33 +0000 (-0400) Subject: fix partioned usb image creations with f12 X-Git-Tag: bootcd-5.0-6~1 X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=commitdiff_plain;h=ae0f336bba6f8788135a1e1692a2bf0b82ce0987 fix partioned usb image creations with f12 --- diff --git a/build.sh b/build.sh index b62308b..b7be938 100755 --- a/build.sh +++ b/build.sh @@ -397,8 +397,12 @@ function build_usb_partition() { local cylinders=$(( ($size*1024*2)/($heads*$sectors) )) local offset=$(( $sectors*512 )) - /usr/lib/syslinux/mkdiskimage -M -4 "$usb" $size $heads $sectors - + if [ -f /usr/lib/syslinux/mkdiskimage ] ; then + /usr/lib/syslinux/mkdiskimage -M -4 "$usb" $size $heads $sectors + else + mkdiskimage -M -4 "$usb" $size $heads $sectors + fi + cat >${BUILDTMP}/mtools.conf<