Where to modify grub timeout?

Hi,
I would like to modify the default grub timeout (10 seconds) using Custom scripts or Overlay files in the SUSE Studio. It seems that /etc/sysconfig/boot (CONFIRM_PROMPT_TIMEOUT) is not the right place. File /boot/grub/menu.lst is not present in the image. How is the menu.lst created/where to set the timeout?
Thanks in advance.

SUSE Studio, Based on: openSUSE 12.1

Hi
If you start the appliance in Test Drive, you can then modify the
menu.lst file and save the modified configuration menu.lst file.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.13-0.27-default
up 21:06, 3 users, load average: 0.00, 0.01, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

[QUOTE=malcolmlewis;2485]Hi
If you start the appliance in Test Drive, you can then modify the
menu.lst file and save the modified configuration menu.lst file.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.13-0.27-default
up 21:06, 3 users, load average: 0.00, 0.01, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU[/QUOTE]

I tried that but it seems that the menu.lst is overwritten after the file overlay. My menu.lst started with:

[QUOTE]timeout 1
gfxmenu (hd0,0)/boot/message
…[/QUOTE]
But the image (Build->View files) contains:

[QUOTE]color cyan/blue white/blue
default 0
timeout 10
…[/QUOTE]

There must be some script that modifies that. I would like to know its location.

Yast → bootloader which should rebuild (mkinitrd) it. So changing it
manually and running mkinitrd should work as well.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.13-0.27-default
up 1 day 1:23, 3 users, load average: 0.15, 0.07, 0.06
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

[QUOTE=malcolmlewis;2487]Yast → bootloader which should rebuild (mkinitrd) it. So changing it
manually and running mkinitrd should work as well.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.13-0.27-default
up 1 day 1:23, 3 users, load average: 0.15, 0.07, 0.06
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU[/QUOTE]

I cannot put “mkinitrd” into the “end of build” script. It ends with the following:

[QUOTE]Kernel image: /boot/vmlinuz-3.1.9-1.4-default
Initrd image: /boot/initrd-3.1.9-1.4-default
device node not found
root device (/dev/vda) not found
There was an error generating the initrd (1)[/QUOTE]

I solved my problem by putting this into the “boot time” script:

[QUOTE]if [ -f /etc/init.d/suse_studio_firstboot ]
then

Put commands to be run on the first boot of your appliance here

echo “Running SUSE Studio first boot script…”
sed -i ‘s/timeout 10/timeout 1/’ /boot/grub/menu.lst
fi[/QUOTE]

It is not optimal, but better than nothing. Thank you anyway, I forgot the possibility to watch modifications in the Test Drive.
Btw. I discovered that the boot timeout is mentioned here. Author of the article left that as an exercise for the reader [wonderful :-\].