Help on Intel NUC6i7KYK

  • Happy New Year everyone!

    I have an Intel NUC6i7KYK with a M.2 SSD.

    I tried few times with no success to install on different partitions Ubuntu and LE.

    In the past worked OK with no EFI support and with a regular SSD and a different HTPC it was no problem to make partitions with USB stick Ubuntu, then install LE and then Ubuntu and via GRUB2 could set it up how to start.

    With M.2 SSD and EFI support it seems that complicates things for me a lot. Any help/guidance?

    Code
    https://www.intel.com/content/www/us/en/products/boards-kits/nuc/kits/nuc6i7kyk.html
    1. Install Ubuntu
    2. Create the two LibreELEC partitions, format them ext4 and label them LE_SYS and LE_DAT
    3. Copy LibreELEC's KERNEL and SYSTEM files to LE_SYS.
    4. Create /boot/grub/custom.cfg and boot.
    Code: /boot/grub/custom.cfg
    menuentry "LibreELEC" {
        search --set=root --label LE_SYS
        linux /KERNEL boot=LABEL=LE_SYS disk=LABEL=LE_DAT quiet tty
    }