5 _HFS_PLUS_PART_MP
="${1}"
7 if [[ -z "${1}" ]]; then
9 echo "Usage: ${0} <HFS_PLUS_PARTITION_MOUNTPOINT>"
11 echo "Example: ${0} /boot/mactel"
18 if [[ "$(df -T "${_HFS_PLUS_PART_MP}" | tail -n +2 | awk '{print $2}')" == "hfsplus" ]]; then
22 mkdir
-p "${_HFS_PLUS_PART_MP}/System/Library/CoreServices"
23 cp "/usr/share/mactel-boot/SystemVersion.plist" "${_HFS_PLUS_PART_MP}/System/Library/CoreServices/SystemVersion.plist"
27 echo "This file is required for booting" > "${_HFS_PLUS_PART_MP}/mach_kernel"
29 touch "${_HFS_PLUS_PART_MP}/System/Library/CoreServices/boot.efi"
30 touch "${_HFS_PLUS_PART_MP}/.VolumeIcon.icns"
34 hfs-bless
"${_HFS_PLUS_PART_MP}" "${_HFS_PLUS_PART_MP}/System/Library/CoreServices" "${_HFS_PLUS_PART_MP}/System/Library/CoreServices/boot.efi"
39 echo "${_HFS_PLUS_PART_MP} is not an HFS PLUS Partition Mountpoint"
45 unset _HFS_PLUS_PART_MP