How do we make kernel flags permanent

Brian Kroth bpkroth at gmail.com
Fri May 13 17:55:31 CEST 2011


Michael Goetze <mgoetze at mgoetze.net> 2011-05-13 12:40:
> Hi David,
>
> On 05/13/2011 02:12 AM, David Dreezer wrote:
>> 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?
>
> Um, that is exactly the classic FAI mechanism for getting things done -
> write a script to do it. I don't know by which critera you'd like to
> evaluate whether something else is better, but writing scripts is what
> FAI is all about.
>
> Regards,
> Michael

Here's a stripped down example of what I've done for similar hosts.  All 
it does is add a rootdelay parameter for certain SCSI controllers, but 
you should be able to see how you'd replace that with something else.
The confs may be slightly out of date.

Brian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fai_grub_opts_example.tar.bz2
Type: application/octet-stream
Size: 2639 bytes
Desc: not available
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20110513/957661f8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20110513/957661f8/attachment.bin>


More information about the linux-fai mailing list