From ce73226eee45bba5d8e4c88a0fa5ce89195e229e Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Thu, 19 Dec 2024 21:31:12 -0500 Subject: [PATCH] update macos build script --- scripts/create-disk.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/create-disk.sh b/scripts/create-disk.sh index b16eb71..ebc3b13 100755 --- a/scripts/create-disk.sh +++ b/scripts/create-disk.sh @@ -170,7 +170,7 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then sfdisk_path="/usr/local/opt/util-linux/sbin/sfdisk" if [ -e $mbr_file ] && [ -e $vbr_file ]; then # use hdiutil to attach our empty disk image - ld_path_raw=$(hdiutil attach -readwrite -imagekey diskimage-class=CRawDiskImage -nomount -blocksize 512 -noverify disk.img) + ld_path_raw=$(hdiutil attach -readwrite -imagekey diskimage-class=CRawDiskImage -nomount -blocksize 512 -noverify /tmp/disk.img) ld=$(echo $ld_path_raw | sed s:/dev/::) ld_path="/dev/$ld" @@ -193,7 +193,7 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then unset ld unset ld_path_raw - ld_path_raw=$(hdiutil attach -readwrite -imagekey diskimage-class=CRawDiskImage -nomount -blocksize 512 -noverify disk.img) + ld_path_raw=$(hdiutil attach -readwrite -imagekey diskimage-class=CRawDiskImage -nomount -blocksize 512 -noverify /tmp/disk.img) ld=$(echo $ld_path_raw | grep "FDisk_partition_scheme" | awk '{print $1}' | sed s:/dev/::) ld_path="/dev/$ld"