Linux kernel boot time parameters

Linux specific questions/information are gathered here. The main thrust of topics are applied to Centos/RedHat(RH)/Debian/Ubuntu/Gentoo distributives

Linux kernel boot time parameters

Postby lik » Sat Jul 09, 2011 7:26 am

The Linux kernel accepts certain 'command-line options' or 'boot time parameters' at the moment it is started. In general this is used to supply the kernel with information about hardware parameters that the kernel would not be able to determine on its own, or to avoid/override the values that the kernel would otherwise detect.

Taken from:
Code: Select all
man bootparam

'panic=N'
By default the kernel will not reboot after a panic, but this option will cause a kernel reboot after N seconds (if N is greater than zero). This panic timeout can
also be set by "echo N > /proc/sys/kernel/panic".

Also you can disable or enable SELinux at boot time with the help of kernel boot time parameters:
selinux=0 disable selinux
selinux=1 enable selinux

For example (/boot/grub/grub.conf):
Code: Select all
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-238.12.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-238.12.1.el5 ro root=/dev/md1 panic=40 selinux=0
        initrd /initrd-2.6.18-238.12.1.el5.img
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Linux specific

 


  • Related topics
    Replies
    Views
    Last post
cron