Bug 760691

Summary: RFE: Add netboot method detection to kickstart post and inventory scripts
Product: [Retired] Beaker Reporter: Matt Brodeur <mbrodeur>
Component: lab controllerAssignee: Bill Peck <bpeck>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.7CC: bpeck, dcallagh, jbrier, mcsontos, mschick, rmancy, rousseau, stl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-26 06:41:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Matt Brodeur 2011-12-06 19:14:23 UTC
In order to populate inventory with the network boot method in use, we need to pass a flag through from the network bootloader to the installed system.  See this ticket for background:
https://engineering.redhat.com/rt/Ticket/Display.html?id=126993

The best idea I've had is to set a flag on the kernel command line from within the cobbler pxe/efi/yaboot/whatever template.  A kickstart %post process could check kernel options for the flag, and drop something in a file on the installed system.  The inventory script would check for that file, and set the Key/Value appropriately.

The only thing we've implemented so far is that the Key is "NETBOOT_METHOD".

We can add the flags to the cobbler templates as a local change, so it's the flag detection and inventory script pieces we'll need done.

The kernel option name needs to be short, meaningful, and not conflict with existing kernel or anaconda options.  Ideas?

Comment 1 Bill Peck 2012-03-26 18:11:43 UTC
Why can't we just use NETBOOT_METHOD in the template file?

Pushing to 0.8.3.  We really need the template to be filled out before I can go any further.

Comment 2 Bill Peck 2012-05-04 19:13:10 UTC
0.9.0 is the next release.

Comment 4 Bill Peck 2012-05-10 18:53:02 UTC
http://gerrit.beaker-project.org/#/c/1054/1

Comment 7 Dan Callaghan 2012-06-26 06:41:03 UTC
Beaker 0.9.0 has been released.