# Where to modify grub timeout?

**URL:** <https://forums.suse.com/t/where-to-modify-grub-timeout/22237>\
**Category:** SUSE Studio / Studio Express\
**Created:** [February 19, 2012, 7:49pm UTC](https://forums.suse.com/t/where-to-modify-grub-timeout/22237 "2012-02-19T19:49:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![de4mator](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@de4mator](https://forums.suse.com/u/de4mator)\
**Post date:** [February 19, 2012, 7:49pm UTC](https://forums.suse.com/t/where-to-modify-grub-timeout/22237/1 "2012-02-19T19:49:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 19, 2012, 8:30pm UTC](https://forums.suse.com/t/where-to-modify-grub-timeout/22237/2 "2012-02-19T20:30:36Z")

</div>

> [@de4mator](#):
>
> 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

---

<div class="post-metadata">

**Author:** ![de4mator](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@de4mator](https://forums.suse.com/u/de4mator)\
**Post date:** [February 19, 2012, 11:01pm UTC](https://forums.suse.com/t/where-to-modify-grub-timeout/22237/3 "2012-02-19T23:01:12Z")

</div>

[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.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 20, 2012, 12:47am UTC](https://forums.suse.com/t/where-to-modify-grub-timeout/22237/4 "2012-02-20T00:47:07Z")

</div>

> [@de4mator](#):
>
> malcolmlewis;2485 Wrote:  
> 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

---

<div class="post-metadata">

**Author:** ![de4mator](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@de4mator](https://forums.suse.com/u/de4mator)\
**Post date:** [February 20, 2012, 9:09pm UTC](https://forums.suse.com/t/where-to-modify-grub-timeout/22237/5 "2012-02-20T21:09:54Z")

</div>

[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](http://mindfluxinc.net/?p=286). Author of the article left that as an exercise for the reader [wonderful :-\].
