Bug 51027

Summary: RFE: enhance loader to use 'nextserver' and 'bootfile' fields from dhcp to get kickstart file with http
Product: [Retired] Red Hat Linux Reporter: bruno
Component: anacondaAssignee: Jeremy Katz <katzj>
Status: CLOSED DEFERRED QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: low    
Version: 9Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 18:48:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description bruno 2001-08-06 18:23:25 UTC
Description of problem:
to get the kickstart file with http, a user has to supply the entire URL.
loader should be enhanced to get the servername and filename from dhcp and
construct the URL with these values (like the NFS method).

How reproducible:
Always

Steps to Reproduce:
it's great that loader can now get the kickstart file with http, but it
requires that user input the URL on the syslinux.cfg command line. (the
code segment below shows that the function kickstartFromHttp() will return
if no kickstart file is supplied).

================================================
current kickstartFromHttp()
================================================
    if (ksSource) {
        ksPath = alloca(strlen(ksSource) + 1);
        strcpy(ksPath, ksSource);
    } else {
        logMessage("no location specified");
        return 1;
    }
================================================


it would be better if loader could build a URL from the dhcp response if no
URL is specified.

================================================
potential enhancement to kickstartFromHttp()
================================================
    if (ksSource) {
        ksPath = alloca(strlen(ksSource) + 1);
        strcpy(ksPath, ksSource);
    } else {
        /*
         * build the path to the kickstart file from the DHCP response
         */
        ksPath = alloca(strlen(file) +
                        strlen(inet_ntoa(netDev.dev.nextServer)) + 70);
        strcpy(ksPath, inet_ntoa(netDev.dev.nextServer));
        strcat(ksPath, file);
    }
=============================================

Comment 1 Michael Fulbright 2001-08-06 22:31:25 UTC
Sounds like a feature request to consider for future releases.

Comment 2 Michael Fulbright 2002-03-26 17:45:22 UTC
Deferring to future release.

Comment 3 Red Hat Bugzilla 2006-02-21 18:48:04 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.