Hi Why don't you have your host-embedded grub boot your USB-resident system and use this USB system embedded grub commands (grub-install and grub-mkconfig) to install grub on your USB stick ? That way you would be sure of the consistency of all your USB grub files. You can then edit your USB grub.cfg file to get rid of the menuentry leading to the booting of your host-resident system.
Arbiel Le 20/06/2014 16:59, Andrey Borzenkov a écrit : > В Fri, 20 Jun 2014 11:00:07 +0100 > David Goodenough <[email protected]> пишет: > >> If I have a host PC (say an Amd64) and I want to set up grub on a USB >> stick for use on another system (say an ARM or i386 system) how do I tell >> grub to use the version on the stick (assume that the USB stick already >> has a complete linux system including grub physically on the USB stick) >> rather than the host code? >> > If I understand your question correctly: > > grub-install --directory=/path/to/grub/on/USB/<arch> ... > > e.g. > > grub-install --directory=/mnt/usb/usr/lib/grub/i386-pc ... > > Not everything is really possible to cross-platform. In particular, any > actions that involve updating system NVRAM are obviously not possible > unless you are on this system. > > You may also look at grub-mkrescue which creates bootable hybrid > ISO/USB image for all platforms present in /usr/lib/grub/<platform> (or > where it is installed). > > _______________________________________________ > Help-grub mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/help-grub _______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
