You are not logged in.

#1 2006-11-30 12:00:05

fax8
Member
From: Italy
Registered: 2006-03-14
Posts: 104
Website

two lilo entries: same kernel, different runlevels. how?

Hi all,

I would like to configure my system to have two different lilo entries: both will boot the same kernel but boot the system into different runlevels.

One entry will boot the system in runlevel 3, the other one in runlevel 5.

Is this possible using lilo? How?

Thanks,

Fabio Varesano

Offline

#2 2006-11-30 12:08:19

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,017

Re: two lilo entries: same kernel, different runlevels. how?

Just create two otherwise the same entries and add "init 3" or "init 5" to the end of each kernel line.

-edit-

That's how you do it in grub. I think in lilo you could pass "init x" through "append="init x"" option.

Offline

#3 2006-11-30 12:43:18

fax8
Member
From: Italy
Registered: 2006-03-14
Posts: 104
Website

Re: two lilo entries: same kernel, different runlevels. how?

Thank you lucke for your help. Worked well.

This is what I have in lilo.conf

image=/boot/vmlinuz26
        label=arch
        append="root=/dev/hda5 init 5"
initrd=/boot/kernel26.img
        read-only

image=/boot/vmlinuz26
        label=arch-text
        append="root=/dev/hda5"
initrd=/boot/kernel26.img
        read-only

while my default inittab is still 3

id:3:initdefault:

I also set kdm as default login manager

x:5:respawn:/opt/kde/bin/kdm

Offline

Board footer

Powered by FluxBB