Menu

Adding other boot options

Massaggio
2024-03-31
2024-03-31
  • Massaggio

    Massaggio - 2024-03-31

    I can add the files for a bootable WinPE directly to a Clonezilla USB. There are only 2 files that overlap (/EFI/Boot/bootia32.efi & /EFI/Boot/bootx64.efi) so I just rename them (/EFI/Boot/bootia32pe.efi & /EFI/Boot/bootx64pe.efi). Then I add this entry:

    menuentry "Windows Preinstallation Environment (WinPE)" {
      search --no-floppy --set=root -f  /EFI/Boot/bootx64pe.efi
      chainloader  /EFI/Boot/bootx64pe.efi + 1
    }

    And everything works. However, this is kind of messy and I would rather keep the files separate. So instead I copy the WinPE files to /WinPE and was hoping to either change the directory or create a few symbolic links. The above becomes:

    menuentry "Windows Preinstallation Environment (WinPE)" {
      cd /WinPE
      search --no-floppy --set=root -f /WinPE/EFI/Boot/bootx64.efi
      chainloader /WinPE/EFI/Boot/bootx64.efi + 1
    }

    Alas, I get an error that it does not recognize the cd command (the error is that it does not recognize ln when I try the link method).  I understand this might not work, but I should at the very least be able to include simple linux commands. What am I doing wrong?

     
  • Steven Shiau

    Steven Shiau - 2024-03-31

    The behaviour of grub command is like bash or UNIX command, but it might not have same action.
    Actually from grub manual:
    https://www.gnu.org/software/grub/manual/grub/grub.html#Commands
    No "cd" command.

    Steven

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.