From: Thomas Cort Date: Sat, 22 Feb 2014 21:32:12 +0000 (-0500) Subject: x86_hdimage.sh: use nbstat from tooldir. X-Git-Tag: v3.3.0~434 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch02.html?a=commitdiff_plain;h=6bc75c4a0d9abb2cd73a551a6fc80bb399de627a;p=minix.git x86_hdimage.sh: use nbstat from tooldir. The syntax of the stat(1) command varies between Linux and FreeBSD. This prevented `x86_hdimage.sh -i` from succeeding on FreeBSD 10.0. The fix is to use the NetBSD stat from the tooldir for all systems. Change-Id: I121e5fd36b0d4a944ba0109cf58095ab7d150847 --- diff --git a/releasetools/x86_hdimage.sh b/releasetools/x86_hdimage.sh index a4aae7785..1dcef4bbd 100755 --- a/releasetools/x86_hdimage.sh +++ b/releasetools/x86_hdimage.sh @@ -65,7 +65,7 @@ then cd_root_changes # uses $CDFILES and writes $CDFILES/boot.cfg # start the image off with the iso image; reduce root size to reserve ${CROSS_TOOLS}/nbwriteisofs -s0x0 -l MINIX -B ${DESTDIR}/usr/mdec/bootxx_cd9660 -n ${CDFILES} ${IMG} - ISO_SIZE=$((`stat -c %s ${IMG}` / 512)) + ISO_SIZE=$((`${CROSS_TOOLS}/nbstat -f %z ${IMG}` / 512)) else # just make an empty iso partition ISO_SIZE=8