diff options
Diffstat (limited to 'release/amd64/mkisoimages.sh')
-rw-r--r-- | release/amd64/mkisoimages.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/release/amd64/mkisoimages.sh b/release/amd64/mkisoimages.sh index a90578c02ebd..3cc7a6cc919e 100644 --- a/release/amd64/mkisoimages.sh +++ b/release/amd64/mkisoimages.sh @@ -4,7 +4,6 @@ # Author: Jordan K Hubbard # Date: 22 June 2001 # -# $FreeBSD$ # # This script is used by release/Makefile to build the (optional) ISO images # for a FreeBSD release. It is considered architecture dependent since each @@ -112,7 +111,11 @@ if [ "$bootable" != "" ]; then # Create a GPT image containing the partitions we need for hybrid boot. hybridfilename=$(mktemp /tmp/hybrid.img.XXXXXX) - imgsize=`stat -f %z "$NAME"` + if [ "$(uname -s)" = "Linux" ]; then + imgsize=`stat -c %s "$NAME"` + else + imgsize=`stat -f %z "$NAME"` + fi $MKIMG -s gpt \ --capacity $imgsize \ -b "$BASEBITSDIR/boot/pmbr" \ |