Discussion:
mklivecd grub
Ivan Kerekes
2006-06-06 04:00:59 UTC
Permalink
I made the grub modification to mklivecd.
The grub function can be selected with the new
--bootloader grub parameter (which currently defaults to iso) so it
will generate isolinux if not specified.
What I didn't coded yet (would be just 3 line) to get the grub xpm
screen as a parameter.
(currently it defaults to the /boot/grub/mdv*.xpm.gz from the GRUB
rpm).

Please test it if you have a chance and let me know your opinion,
and/or suggestions for functions, preprogammed Grub-menu's and so on.

Regards
--
--
Ivan Kerekes
--
--
Ivan Kerekes
Dieter Schütze
2006-06-18 10:02:37 UTC
Permalink
Hello,
the part of bootloader grub is wrong.
On Mandriva the right path is
/lib/grub/i386-mandriva/stage2_eltorito
and not
/lib/grub/i386-pc/stage2_eltorito


here my diff for mklivecd.in:
-----------------------------------------------------------------------------------------------
557c557
< die("\nFATAL: The Grub program is not available, please install
the correct package\n") unless (-f '/lib/grub/i386-pc/stage2_eltorito'
|| ($o_bootloader =~ m/^grub/));
---
die("\nFATAL: The Grub program is not available, please install
the correct package\n") unless (-f
'/lib/grub/i386-mandriva/stage2_eltorito' || ($o_bootloader =~ m/^grub/));
811c811
< do_copy($o_root."lib/grub/i386-pc/stage2_eltorito", 644,
"$workdir/livecd/boot/grub/stage2_eltorito", ++$pos);^M
---
do_copy($o_root."lib/grub/i386-mandriva/stage2_eltorito", 644,
"$workdir/livecd/boot/grub/stage2_eltorito", ++$pos);^M

-------------------------------------------------------------------------------------------------------

Regards

Dieter
I made the grub modification to mklivecd.
The grub function can be selected with the new
--bootloader grub parameter (which currently defaults to iso) so it
will generate isolinux if not specified.
What I didn't coded yet (would be just 3 line) to get the grub xpm
screen as a parameter.
(currently it defaults to the /boot/grub/mdv*.xpm.gz from the GRUB
rpm).
Please test it if you have a chance and let me know your opinion,
and/or suggestions for functions, preprogammed Grub-menu's and so on.
Regards
--
--
Ivan Kerekes
--
Dieter Schütze
***@d-schuetze.de
http://www.schuetze.homelinux.org

-----------------------------------
In einer modernen Gesellschaft muss
Wissen frei zur Verfügung stehen
-----------------------------------
Ivan Kerekes
2006-06-18 23:53:31 UTC
Permalink
Post by Dieter Schütze
Hello,
the part of bootloader grub is wrong.
On Mandriva the right path is
/lib/grub/i386-mandriva/stage2_eltorito
and not
/lib/grub/i386-pc/stage2_eltorito
-----------------------------------------------------------------------------------------------
557c557
< die("\nFATAL: The Grub program is not available, please install
the correct package\n") unless (-f '/lib/grub/i386-pc/stage2_eltorito'
|| ($o_bootloader =~ m/^grub/));
---
Post by Dieter Schütze
die("\nFATAL: The Grub program is not available, please install
the correct package\n") unless (-f
'/lib/grub/i386-mandriva/stage2_eltorito' || ($o_bootloader =~ m/^grub/));
811c811
< do_copy($o_root."lib/grub/i386-pc/stage2_eltorito", 644,
"$workdir/livecd/boot/grub/stage2_eltorito", ++$pos);^M
---
Post by Dieter Schütze
do_copy($o_root."lib/grub/i386-mandriva/stage2_eltorito", 644,
"$workdir/livecd/boot/grub/stage2_eltorito", ++$pos);^M
-------------------------------------------------------------------------------------------------------
Regards
Dieter
Yes, sorry Dieter I don't have a working Mandriva install, so I can't
check the palacement of grub on mandriva.
If you are hardcoding the library (as I did errorausly) you will break
PCLOS or any other distro which is placing GRUB in different directory
structure. possibly the solution would be to use a
$STAGE_2=`find /lib -name stage2_eltorito`
if [ -n "$STAGE_2"]; then
die with error message
fi
structure.
Sorry for the bash syntax, as you can tell I am no perl guy.
--
--
Ivan Kerekes
Loading...