xref: /openbmc/qemu/contrib/vmapple/uuid.sh (revision 959fd759a2a55d90bf18f5b275cf6c7b11b27a79)
1#!/bin/sh
2#
3# Used for converting a guest provisioned using Virtualization.framework
4# for use with the QEMU 'vmapple' aarch64 machine type.
5#
6# Extracts the Machine UUID from Virtualization.framework VM JSON file.
7# (as produced by 'macosvm', passed as command line argument)
8#
9# SPDX-License-Identifier: GPL-2.0-or-later
10
11plutil -extract machineId raw "$1" | base64 -d | plutil -extract ECID raw -
12
13