# SLES11 ignores default runlevel

**URL:** https://forums.suse.com/t/sles11-ignores-default-runlevel/24487
**Category:** SLES Install-Boot
**Created:** [September 12, 2013, 4:59pm UTC](https://forums.suse.com/t/sles11-ignores-default-runlevel/24487 "2013-09-12T16:59:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)
#### Post date: [September 12, 2013, 4:59pm UTC](https://forums.suse.com/t/sles11-ignores-default-runlevel/24487/1 "2013-09-12T16:59:47Z")

</div>

Hi,

my SLES 11 servers all boot to runlevel 5 even though default runlevel is  
set to 3. Since I almost never use the GUI on Linux servers I’d prefer 3…

# cat /etc/inittab | grep :initdefault

id:3:initdefault:

# cat /var/log/boot.msg | grep “runlevel”

INIT: Entering runlevel: 5  
Master Resource Control: previous runlevel: N, switching to runlevel: 5  
Master Resource Control: runlevel 5 has been reached  
Skipped services in runlevel 5: nfs splash smartd

Any ideas?

Thanks,  
Mirko

---

<div class="post-metadata">

### Author: ![Willem1](https://avatars.discourse-cdn.com/v4/letter/w/c57346/32.png) [@Willem1](https://forums.suse.com/u/Willem1)
#### Post date: [September 12, 2013, 6:13pm UTC](https://forums.suse.com/t/sles11-ignores-default-runlevel/24487/2 "2013-09-12T18:13:08Z")

</div>

[QUOTE=Mirko Guldner;16228]Hi,

my SLES 11 servers all boot to runlevel 5 even though default runlevel is  
set to 3. Since I almost never use the GUI on Linux servers I’d prefer 3…

# cat /etc/inittab | grep :initdefault

id:3:initdefault:

# cat /var/log/boot.msg | grep “runlevel”

INIT: Entering runlevel: 5  
Master Resource Control: previous runlevel: N, switching to runlevel: 5  
Master Resource Control: runlevel 5 has been reached  
Skipped services in runlevel 5: nfs splash smartd

Any ideas?

Thanks,  
Mirko[/QUOTE]

My first thought would be to check the bootloader /boot/grub/menu.lst statements to see if an “init 5” has been included there?

Having a read through the /var/log/boot.msg might also reveal who/what is calling runlevel 5.

-Willem

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [September 19, 2013, 6:00pm UTC](https://forums.suse.com/t/sles11-ignores-default-runlevel/24487/3 "2013-09-19T18:00:26Z")

</div>

There is no ‘init 5’ in menu.lst. I’m not sure what exactly to look for in  
boot.msg… there is no ‘init 5’. There this:

System Boot Control: Running /etc/init.d/boot.local  
done  
INIT: Entering runlevel: 5

/etc/init.d/boot.local is empty, only comments.

I see several occurrences of variable RUNLEVEL=5 - but I don’t see where  
this comes from. I afraid I’m missing something obvious…

Thanks,  
Mirko

Magic31 wrote:

[color=blue]

> Mirko Guldner;16228 Wrote:[color=green]
> 
> > Hi,
> > 
> > my SLES 11 servers all boot to runlevel 5 even though default runlevel  
> > is  
> > set to 3. Since I almost never use the GUI on Linux servers I’d prefer  
> > 3…
> > 
> > # cat /etc/inittab | grep :initdefault
> > 
> > id:3:initdefault:
> > 
> > # cat /var/log/boot.msg | grep “runlevel”
> > 
> > INIT: Entering runlevel: 5  
> > Master Resource Control: previous runlevel: N, switching to runlevel: 5  
> > Master Resource Control: runlevel 5 has been reached  
> > Skipped services in runlevel 5: nfs splash smartd
> > 
> > Any ideas?
> > 
> > Thanks,  
> > Mirko[/color]
> 
> My first thought would be to check the bootloader /boot/grub/menu.lst  
> statements to see if an “init 5” has been included there?
> 
> Having a read through the /var/log/boot.msg might also reveal who/what  
> is calling runlevel 5.
> 
> -Willem
> 
> [/color]

---

<div class="post-metadata">

### Author: ![Willem1](https://avatars.discourse-cdn.com/v4/letter/w/c57346/32.png) [@Willem1](https://forums.suse.com/u/Willem1)
#### Post date: [September 25, 2013, 12:02pm UTC](https://forums.suse.com/t/sles11-ignores-default-runlevel/24487/4 "2013-09-25T12:02:14Z")

</div>

[QUOTE=Mirko Guldner;16413]…  
I see several occurrences of variable RUNLEVEL=5 - but I don’t see where  
this comes from. I afraid I’m missing something obvious…  
…[/QUOTE]

Then I’m missing it too 🙂 The places you’ve looked are the places I would look.

Would you mind, so we can have a more detailed look, posting the output of:  
“cat /boot/grub/menu.lst”  
“cat /etc/inittab |grep -v ‘#’”

Also curious to which SLES 11 SP version you are running (and when was it last patched up)?

Cheers,  
Willem

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [October 7, 2013, 6:25pm UTC](https://forums.suse.com/t/sles11-ignores-default-runlevel/24487/5 "2013-10-07T18:25:06Z")

</div>

Sorry for the delay, it seems to be a bad habit of me to ask questions  
immediately before holidays… but the holidays helped… 😉

Found it: it was in menu.lst. I did not see it before, because I looked for  
‘init’, but it’s simply ‘5’:

kernel /boot/vmlinuz-3.0.80-0.7-default root=/dev/disk/by-  
id/scsi-360050768018087140000000000000077-part2 5

My guess is, that autoyast is the culprit which put it there… (?)

Thanks,  
Mirko

Magic31 wrote:  
[color=blue]

> Mirko Guldner;16413 Wrote:[color=green]
> 
> > …  
> > I see several occurrences of variable RUNLEVEL=5 - but I don’t see  
> > where  
> > this comes from. I afraid I’m missing something obvious…  
> > …[/color]
> 
> Then I’m missing it too 🙂 The places you’ve looked are the places I  
> would look.
> 
> Would you mind, so we can have a more detailed look, posting the output  
> of:  
> “cat /boot/grub/menu.lst”  
> “cat /etc/inittab |grep -v ‘#’”
> 
> Also curious to which SLES 11 SP version you are running (and when was  
> it last patched up)?
> 
> Cheers,  
> Willem
> 
> [/color]

---

<div class="post-metadata">

### Author: ![Willem1](https://avatars.discourse-cdn.com/v4/letter/w/c57346/32.png) [@Willem1](https://forums.suse.com/u/Willem1)
#### Post date: [October 15, 2013, 7:01pm UTC](https://forums.suse.com/t/sles11-ignores-default-runlevel/24487/6 "2013-10-15T19:01:00Z")

</div>

[QUOTE=Mirko Guldner;16737]…Found it: it was in menu.lst. I did not see it before, because I looked for  
‘init’, but it’s simply ‘5’:[/QUOTE]

Cool that’s sorted & thanks for posting back! 🙂

> [@Mirko Guldner;16737](#):
>
> My guess is, that autoyast is the culprit which put it there… (?)

It’s possible you will find that value in your AutoYaST XML… I’m more of a template guy myself (as we run 99% of our systems virtually, that’s a much quicker deployment method) and haven’t done much with that. But the boot vars should be easily enough to find and adjust in that xml, it if runlevel 3 is what you want to have it default to. It will probably make the installer (second pass) also fallback into text mode, which is less desirable imo. Better set it after the fact.

Cheers,  
Willem
