reload to Fedora using efibootmgr

  • Hi guys,

    I have installed Libreelec and Fedora in parallel and I am looking for an solution to switch between the OS while reloading.

    In order to boot to Fedora on next reload I am using efibootmgr:

    LibreELEC:~/kodi # cat Fedora.sh 
    #!/bin/bash
    efibootmgr --bootnext 0002
    reboot

    The script is working fine via CLI but the reboot command is not working when I am launching the script in Kodi System.Exec(/storage/.kodi/Fedora.sh

    Is there another way of doing this ?


    Thank you