linus72 wrote:also, is it hard to make a grub2 iso??
I have a script to make grub iso's
so maybe you can tell me the syntax for making a grub2
Well, it's not that hard, I needed a trick though, because per default grub2 only offers to create a rescue image.
Here are all the scripts files I used:http://gaia.homelinux.org/salix/livegrub2/
Most important are those which are also in the build.tar.bz2.
Basically one could use the build.sh there like that to convert an ISO to grub2 (simplest scenario):
- Code: Select all
build.sh --overlay=/path/to/some/iso --config=/path/to/grub.cfg --out=/path/to/output/iso
Whereas grub.cfg needs to be a valid grub.cfg. Basically one menuentry to boot the kernel is enough.
I recommend one never touches root or prefix, because otherwise one may limit it to a certain device range, per default it seems to set the device it's booting from. If you load multiple configfile (thus create a new environment) it's necessary to always export root and prefix and any variable which should be kept in every new environment. There's a misbehaviour in the export function (variables marked for export are exported to the new environment, but in that environment not again marked for export). I sent the devs a patch before 1.97 but until today (or the last time I checked svn) the problem still exists.