Cobbler static system record uses dhcp bootproto
Issue
- Adding a cobbler system record and setting to static networking creates kickstart that uses DHCP networking:
# cobbler system add --name=staticsystem --profile=static:1:MyTechnologyCompany --mac-address=00:50:56:82:58:85 --interface=eth0 --static=1
- Snippet of the kickstart file generated:
cp /etc/sysconfig/network-scripts/ifcfg-lo /etc/sysconfig/network-scripts/cobbler/
echo "DEVICE=eth0" > /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0
echo "HWADDR=00:51:56:62:4C:22" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0
echo "ONBOOT=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0
echo "BOOTPROTO=dhcp" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0
Environment
- Red Hat Satellite 5.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.