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:
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:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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