[opensuse-autoinstall] Bad grub menu after autoyast install
We use a pretty simple AutoYast that simply lays down the same basic install and partitioning using ASK only to pick up IP (address, mask, & gateway) and HOSTNAME info. We come back afterwards to install OES2 on top of SLES. We started this with OES2 (no SP) and have just finally started new installs of OES2 SP2 (SLES 10 SP3). One thing that has been consistent in SP2 and, unfortunately, now SP3 is the grub menu referencing the kernel from one SP earlier. For example, 2.6.16.60-0.21 is now being referenced in the SP3 grub menu after AutoYast installation (the installed kernel is 0.54.5). It doesn't do this every time and I have been unable to find a pattern to the problem appearing. Hoping someone knows why it would be doing this. However, I am willing to do a workaround on this but I'm not a coder by nature and have hit roadblocks figuring out how to include AutoYast code to copy a "standard" grub menu from my install DVD. If anyone could point me to the way to insert this type of code into my AutoYast I would be content. Thanks! Eric -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thu, Aug 26, 2010 at 8:15 PM, Eric Rothweiler <eric.rothweiler@gmail.com> wrote:
However, I am willing to do a workaround on this but I'm not a coder by nature and have hit roadblocks figuring out how to include AutoYast code to copy a "standard" grub menu from my install DVD. If anyone could point me to the way to insert this type of code into my AutoYast I would be content.
Have you tried taking out the "<bootloader>" section entirely? It should try and determine the parameters automatically. -- -- Erico -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
I would, however we need to add lines to the boot menu to reduce the screen resolution (many locations only have old monitors not capable of higher resolutions) If that is my only solution I would probably fall back to leaving a good copy on the DVD and do the hated boot to rescue mode to manually copy the correctly defined menu.lst over to the new system. The thought is greatly appreciated! Eric 2010/8/26 Erico Mendonça <erico.mendonca@gmail.com>:
On Thu, Aug 26, 2010 at 8:15 PM, Eric Rothweiler <eric.rothweiler@gmail.com> wrote:
However, I am willing to do a workaround on this but I'm not a coder by nature and have hit roadblocks figuring out how to include AutoYast code to copy a "standard" grub menu from my install DVD. If anyone could point me to the way to insert this type of code into my AutoYast I would be content.
Have you tried taking out the "<bootloader>" section entirely? It should try and determine the parameters automatically.
-- -- Erico
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thu, Aug 26, 2010 at 8:39 PM, Eric Rothweiler <eric.rothweiler@gmail.com> wrote:
I would, however we need to add lines to the boot menu to reduce the screen resolution (many locations only have old monitors not capable of higher resolutions) If that is my only solution I would probably fall back to leaving a good copy on the DVD and do the hated boot to rescue mode to manually copy the correctly defined menu.lst over to the new system.
I see there are individual tags to define the "vga" parameter in the bootloader section, but you'd probably need to set it all up manually. Perhaps a chroot script would solve this problem? <scripts> <chroot-scripts config:type="list"> <script> <chrooted config:type="boolean">true</chrooted> <filename>fixgrub.sh</filename> <interpreter>shell</interpreter> <source><![CDATA[ #!/bin/sh echo "Setting vga mode to 800x600 in GRUB" sed -i 's@vga=[0-9]*@vga=314@g' /boot/grub/menu.lst ]]> </source> </script> </chroot-scripts> <scripts> -- -- Erico -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
2010/8/26 Erico Mendonça <erico.mendonca@gmail.com>:
echo "Setting vga mode to 800x600 in GRUB" sed -i 's@vga=[0-9]*@vga=314@g' /boot/grub/menu.lst
Replying to myself, that should be 0x314... -- -- Erico -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Thanks for the code - I'm going to try that. I have to come clean though - opening the XML to remove the bootloader section, I found that I indeed had bad lines in my 3 different profiles. (call it too many hours supporting legacy systems :-) So, while I may only have to cleanup the bootloader section, I'm going to leverage the help to potentially end up with a more elegant solution. Thanks again! Eric 2010/8/26 Erico Mendonça <erico.mendonca@gmail.com>:
2010/8/26 Erico Mendonça <erico.mendonca@gmail.com>:
echo "Setting vga mode to 800x600 in GRUB" sed -i 's@vga=[0-9]*@vga=314@g' /boot/grub/menu.lst
Replying to myself, that should be 0x314...
-- -- Erico
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Eric Rothweiler
-
Erico Mendonça