SHARE
TWEET
canuto
a guest
Oct 10th, 2012
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- TARGET="/boot/mac"
- SYSTEM="$TARGET/System/Library/CoreServices"
- GRUB64="/boot/efi/EFI/ubuntu/grubx64.efi"
- # required folders for mac efi boot
- mkdir -p $SYSTEM
- # grub boot efi
- cp $GRUB64 $SYSTEM/boot.efi
- # required files for mac efi boot
- cat > $TARGET/mach_kernel <<-EOF
- This file is required for booting
- EOF
- cat > $SYSTEM/SystemVersion.plist <<-EOF
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
- <plist version="1.0">
- <dict>
- <key>ProductBuildVersion</key>
- <string></string>
- <key>ProductName</key>
- <string>Linux</string>
- <key>ProductVersion</key>
- <string>Ubuntu 12.04</string>
- </dict>
- </plist>
- EOF
- f
RAW Paste Data

