OpenElec

From Bitpost wiki

(this distro is discontinued, a fork LibreElec exists but i haven't explored)

OpenELEC multi-boot install
The easiest way is to add a new drive just for OpenElec and install OpenElec to it with the installer. But if you want to SHARE ONE DRIVE with other boots, DO NOT DO THAT :-) Do this instead:
  • On an existing refind-booted system, set up two new ext4 partitions
    • one about 2GB in size, labeled [SYSTEM], and marked as bootable
    • the other with 10GB or more, labeled [STORAGE]
    • prep the drives (no journal, ssd trim)
  • download openelec and mount; there are a couple ways:
    • get the img and install to a thumb
    • get the img and mount (see below)
  • Set up OE drives to mount in other OSes to /openelec-system and /openelec-storage
/dev/disk/by-label/SYSTEM  /openelec-system  ext4 noatime 0 0
/dev/disk/by-label/STORAGE /openelec-storage ext4 noatime 0 0
  • copy target/KERNEL and target/SYSTEM to SYSTEM
cp OpenELEC_img/target/KERNEL /openelec-system/
cp OpenELEC_img/target/SYSTEM /openelec-system/
  • set up UEFI boot
    • subl /boot/efi/EFI/refind/refind.conf (and add this block)
# MDM Trying this, from: http://openelec.tv/forum/64-installation/70783-how-to-efi-booting-openelec-on-new-pc-s-nuc-s
# Only I had to change BOOT to SYSTEM.  and quiet to debugging.
menuentry OpenELEC {
	  icon EFI/refind/icons/os_openelec.png
	  volume SYSTEM
	  ostype Linux
	  loader KERNEL
#	  options "boot=LABEL=SYSTEM disk=LABEL=STORAGE debugging"
	  options "boot=LABEL=SYSTEM disk=LABEL=STORAGE quiet"
}
  • I THINK you need one or more of these too, not sure!
cp target/boot/bootx64.efi /openelec-system/BOOT
cp target/boot/bootx64.efi /boot/efi/EFI/ubuntu/
cp target/boot/bootx64.efi /boot/efi/EFI/ubuntu/
OpenELEC boot from thumb
NOTE: I have the image already on a white stick with red lettering... anyway...
  • Get the latest dev version (stable didn't work for me although this may change)
  • dd it onto a thumb
  • reboot and select to boot to the thumb in BIOS
  • when the boot: line comes up, type "live" to get run a live Kodi rather than run the crufty old installer