Set PXE Kernel Arguments Via Script



  • We have a number of servers that use their second nic by default, we've just been using two image profiles where one has a PXE Boot Kernel Arg as net_if=eth1

    Is it possible to set this programmatically via Custom Attributes, something along the lines of
    [code]
    if [ $cust_attr_1 = "2" ]
    then
    set net_if=eth1
    fi
    [/code]



  • That wouldn't work because the custom attributes aren't set until the computer checks in, which obviously takes place after the interface is set. I'm not really sure why you need this though. CloneDeploy should try to get an address from each nic.