How do we make kernel flags permanent

David Dreezer dave at socialstrata.com
Fri May 13 02:12:35 CEST 2011


Hi,

We have a group of older servers that for whatever reason require the flag libata.force=noncq to be inserted in the kernel command line.

See message 15 of http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607285 for the exact file we're using. That's actually my config file quoted.

My question isn't related to this bug exactly, but actually what I've run into at the next step in the process.  There seems to be no mechanism in FAI at the present that will take that exported kernel option and add it into grub2. So, while we can apply the kernel option to our kernel, mount NFSROOT and install our server we can't actually apply the kernel options to the installed system, which means once FAI tells it to reboot....... it never comes back up.

My workaround has been to remove the reboot flag as you see in the config that I linked to. I will then manually go in, edit /etc/default/grub/GRUB_CMDLINE_LINUX_DEFAULT then reboot the machine, but that's not exactly automatic. I could put a script into /scripts/LAST for this server class that will sed that into the file for me I suppose, but is there a better way? Is there a mechanism in FAI that would do this for me, but that I am not seeing? 

Am I the only one that has faced a need to make a kernel flag permanent?

Thanks,

David Dreezer
Customer Advocate, Social Strata, Inc.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20110512/88da5e18/attachment.html>


More information about the linux-fai mailing list