From 6bc75c4a0d9abb2cd73a551a6fc80bb399de627a Mon Sep 17 00:00:00 2001 From: Thomas Cort Date: Sat, 22 Feb 2014 16:32:12 -0500 Subject: [PATCH] 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 --- releasetools/x86_hdimage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.0