diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2012-02-26 16:25:31 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2012-02-26 16:27:51 +0100 |
commit | 46687d8a2bf91a0896c769a05ac030029592a436 (patch) | |
tree | d5684f43dc36adf1067103e38a282c776504cf3f /mkefipart-hfsplus | |
parent | 530af128bc072a414278c315c3b7ad5ff6278a0b (diff) | |
download | kanotix-46687d8a2bf91a0896c769a05ac030029592a436.zip kanotix-46687d8a2bf91a0896c769a05ac030029592a436.tar.gz |
support for embedded Mac OS X USB-ImageWriter
Diffstat (limited to 'mkefipart-hfsplus')
-rwxr-xr-x | mkefipart-hfsplus | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mkefipart-hfsplus b/mkefipart-hfsplus index b858160..af89307 100755 --- a/mkefipart-hfsplus +++ b/mkefipart-hfsplus @@ -26,7 +26,7 @@ workdir="$(mktemp -d efi-image.XXXXXX)" # Stuff boot*.efi into a HFS+ filesystem, making it as small as possible (in MB steps). # (x+1023)/1024*1024 rounds up to multiple of 1024. dd if=/dev/zero of="$img" bs=1k count=$(( ($(stat -c %s binary/efi/boot/boot*.efi | awk '{s+=$1} END {print s}') / 1024 + 1023) / 1024 * 1024 )) 2>/dev/null -mkfs.hfsplus "$img" +mkfs.hfsplus -v "KANOTIX Mac" "$img" mount -o loop,creator=prhc,type=jxbt,uid=99,gid=99 "$img" "$workdir" cp "$label" "$workdir"/.disk_label mkdir -p "$workdir"/efi/boot @@ -36,6 +36,8 @@ do cp "$file" "$workdir/efi/boot/$(basename "$file")" done +[ -e imagewriter.tar.gz ] && tar xzf imagewriter.tar.gz -C "$workdir" + set -- $(ls -i $workdir/efi/boot/boot*.efi) inode=$1 |