![](https://seccdn.libravatar.org/avatar/73504c8c21238f79e19015f6cb2e7bdc.jpg?s=120&d=mm&r=g)
Is it possible to set up more run levels than the seven provided by SuSE? As far as I can tell, I can add more by setting up more directories in /etc/init.d, although I probably wouldn't be able to set them up in yast. Am I right? Will grub allow me to switch to a specific run level from the boot menu? Failing that, is /etc/boot.local a good place to set up a script for calling one of these additional run levels? -- The opposite of a profound truth may well be another profound truth. -- Bohr
![](https://seccdn.libravatar.org/avatar/5a7166c7cfba16db9c3066d0f5eac66d.jpg?s=120&d=mm&r=g)
On Thu, Dec 04, 2003 at 08:45:28PM -0800, Timothy Hanson wrote:
Is it possible to set up more run levels than the seven provided by SuSE?
What for? Some *nix systems manage to use no run levels at all.
As far as I can tell, I can add more by setting up more directories in /etc/init.d, although I probably wouldn't be able to set them up in yast. Am I right?
I'm not sure if YaST is capable of managing additional run levels.
Will grub allow me to switch to a specific run level from the boot menu?
GRUB knows nothing about run level. It is /etc/inittab which specifies default run level, and it is init which is responsible for switching run levels.
Failing that, is /etc/boot.local a good place to set up a script for calling one of these additional run levels?
I don't know what kind of functionality you are going to implement with additional run levels. Maybe SUSE profile manager is a more appropriate tool. Look at man page for init for more information about run levels. Regards, -Kastus
![](https://seccdn.libravatar.org/avatar/861b5545c111d2257fa12e533e723110.jpg?s=120&d=mm&r=g)
The Thursday 2003-12-04 at 21:50 -0800, Kastus wrote:
GRUB knows nothing about run level. It is /etc/inittab which specifies default run level, and it is init which is responsible for switching run levels.
Not quite... you can call a different runlevel from grub just by typing its number when booting up. -- Cheers, Carlos Robinson
![](https://seccdn.libravatar.org/avatar/5a7166c7cfba16db9c3066d0f5eac66d.jpg?s=120&d=mm&r=g)
On Sat, Dec 06, 2003 at 02:21:43AM +0100, Carlos E. R. wrote:
The Thursday 2003-12-04 at 21:50 -0800, Kastus wrote:
GRUB knows nothing about run level. It is /etc/inittab which specifies default run level, and it is init which is responsible for switching run levels.
Not quite... you can call a different runlevel from grub just by typing its number when booting up.
Technically, it's not grub, it is the kernel you're telling to use runlevel number in init. Same way, you can tell kernel to run a shell in stead of init, but that's a different story. Regards, -Kastus
![](https://seccdn.libravatar.org/avatar/73504c8c21238f79e19015f6cb2e7bdc.jpg?s=120&d=mm&r=g)
On Fri, 2003-12-05 at 19:16, Kastus wrote:
On Sat, Dec 06, 2003 at 02:21:43AM +0100, Carlos E. R. wrote:
The Thursday 2003-12-04 at 21:50 -0800, Kastus wrote:
GRUB knows nothing about run level. It is /etc/inittab which specifies default run level, and it is init which is responsible for switching run levels.
Not quite... you can call a different runlevel from grub just by typing its number when booting up.
Technically, it's not grub, it is the kernel you're telling to use runlevel number in init. Same way, you can tell kernel to run a shell in stead of init, but that's a different story.
Regards, -Kastus
Thanks. That's what I was wondering about. Are there lines in /boot/grub/menu.lst I can add to tie a runlevel choice to a menu option? I RTFMed the grub man page but couldn't find it. If you have a resource for messages sent to the kernel on boot I'd appreciate it. -- Security check: INTRUDER ALERT!
![](https://seccdn.libravatar.org/avatar/5a7166c7cfba16db9c3066d0f5eac66d.jpg?s=120&d=mm&r=g)
On Fri, Dec 05, 2003 at 10:48:47PM -0800, Timothy Hanson wrote:
Thanks. That's what I was wondering about. Are there lines in /boot/grub/menu.lst I can add to tie a runlevel choice to a menu option?
I doubt you can. Your only choice is passing S as a parameter to the kernel to run init in single-user mode. Otherwise the runlevel is taken from /etc/inittab. Maybe you are looking in the wrong direction and the task you are trying to accomplish can be achived in a different way? Are you sure you need run level for that?
I RTFMed the grub man page but couldn't find it. If you have a resource for messages sent to the kernel on boot I'd appreciate it.
/usr/src/linux/Documentation/kernel-parameters.txt Regards, -Kastus
![](https://seccdn.libravatar.org/avatar/ca7a6cecbe187f445fb1c36ce254b963.jpg?s=120&d=mm&r=g)
On Fri, Dec 05, 2003 at 11:00:46PM -0800, Kastus wrote:
On Fri, Dec 05, 2003 at 10:48:47PM -0800, Timothy Hanson wrote:
Thanks. That's what I was wondering about. Are there lines in /boot/grub/menu.lst I can add to tie a runlevel choice to a menu option?
I doubt you can. Your only choice is passing S as a parameter to the kernel to run init in single-user mode. Otherwise the runlevel is taken from /etc/inittab.
Uh.. I believe you can pass any run level through grub. I sure hope so, otherwise all those times I've done it must have been in a dream. `*8> -- Brad Shelton On Line Exchange http://ole.net Phone: 313-526-1111 Fax: 313-526-3333
![](https://seccdn.libravatar.org/avatar/861b5545c111d2257fa12e533e723110.jpg?s=120&d=mm&r=g)
The Saturday 2003-12-05 at 22:48 -0800, Timothy Hanson wrote:
Thanks. That's what I was wondering about. Are there lines in /boot/grub/menu.lst I can add to tie a runlevel choice to a menu option? I RTFMed the grub man page but couldn't find it. If you have a resource for messages sent to the kernel on boot I'd appreciate it.
I was told there is a way to choose a profile to be loaded by init, or something of the sort. I don't remember the details, it is something I have on my to-do list for investigation. I guess it supported by SuSE. Time to read an investigate. Kernel parameters? Sure, in the kernel docs: /usr/src/linux/Documentation/kernel-parameters.txt And some more files nearby. -- Cheers, Carlos Robinson
![](https://seccdn.libravatar.org/avatar/861b5545c111d2257fa12e533e723110.jpg?s=120&d=mm&r=g)
The Friday 2003-12-05 at 19:16 -0800, Kastus wrote:
Not quite... you can call a different runlevel from grub just by typing its number when booting up.
Technically, it's not grub, it is the kernel you're telling to use runlevel number in init. Same way, you can tell kernel to run a shell in stead of init, but that's a different story.
Well... as this happens before any kernel has loaded, under grub control, as it is showing its menu for you to choose and type, you give parameters to grub, and it is passed to the kernel, if appropriate. -- Cheers, Carlos Robinson
participants (4)
-
Brad Shelton
-
Carlos E. R.
-
Kastus
-
Timothy Hanson