Changes between Version 4 and Version 5 of PXEInstall


Ignore:
Timestamp:
02/23/12 13:07:03 (10 years ago)
Author:
jdreed
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PXEInstall

    v4 v5  
    3838Once the user has decided what they want, we move on to network configuration.  If the user has a "real" DHCP address (i.e. not 18.2 or 10.whatever), they can elect to use that and not configure network, or they can move on to static IP configuration.  (People selecting -cluster are forced to use a static IP).  Network configuration: 
    3939 
    40  # Check if we can get to our low-rent DNS resolver.  If so, we can accept a hostname instead of an IP. 
    41  # Prompt the user for an IP (or hostname if DNS is available). 
    42  # If we get a hostname, look up the A record.  If there isn't one, demand an IP. 
    43  # If we get an IP, look up the PTR record, and set the target system's hostname to the value.  Otherwise, set it to `install-target-host`. 
    44  # Given the IP, use ~~magic~~ the `netparams` script and `masks` file to get the netmask, broadcast, gateway, and CIDR notation.  If we're not on cluster, give the user a chance to edit them by hand. 
    45  # Kill `dhclient` if it's running, and flush eth0.  Set the IP address, route, and other info.  Set the MIT nameservers and clobber any existing values in resolv.conf 
     40 1. Check if we can get to our low-rent DNS resolver.  If so, we can accept a hostname instead of an IP. 
     41 1. Prompt the user for an IP (or hostname if DNS is available). 
     42 1. If we get a hostname, look up the A record.  If there isn't one, demand an IP. 
     43 1. If we get an IP, look up the PTR record, and set the target system's hostname to the value.  Otherwise, set it to `install-target-host`. 
     44 1. Given the IP, use ~~magic~~ the `netparams` script and `masks` file to get the netmask, broadcast, gateway, and CIDR notation.  If we're not on cluster, give the user a chance to edit them by hand. 
     45 1. Kill `dhclient` if it's running, and flush eth0.  Set the IP address, route, and other info.  Set the MIT nameservers and clobber any existing values in resolv.conf 
    4646 
    4747Not that we're all set, we retrieve the kexec binary, and the arch-specific net-install initrd and kernel from debathena.mit.edu/net-install.  And we set up the kernel args to pass: