![]() I just want to fill in the first two lines in %pre (hostname and ip) and that it gets used automatically during the complete installation (and in %post). Because I still have to change it manually afterwards. ![]() ![]() I have no clue what I am doing wrong, but checking ifcfg-eth0 and hostname, it clearly shows the pre-entered variables are not being used? But like I said above, maybe it's simply not possible, that or I am using it incorrectly.Īnd no I don't want to use DHCP or similar. This would make things easier with Kickstarting multiple servers on the long run. In other words, I just want to fill in 2 lines and that rest gets configured as I want. Ofcourse I can manually adjust all lines manually before and after, but I wanted to make this as easy as possible without editing everything manually. Am I doing something wrong or is it simply not possible? And is there an alternative solution perhaps for this? So variables are not being parsed into the Kickstart. I checked the ifcfg-eth0 physically after I couldn't reach the server anymore and it showed the following: IPADDR= read ip1 ip2 ip3 ip4 > /etc/sysconfig/networkĮcho GATEWAY=100.110.$ip3.1 > /etc/sysconfig/networkĮcho BOOTPROTO=static > /etc/sysconfig/network-scripts/ifcfg-eth0Įcho IPADDR=$ip > /etc/sysconfig/network-scripts/ifcfg-eth0Įcho NETMASK=255.255.255.0 > /etc/sysconfig/network-scripts/ifcfg-eth0Įcho BROADCAST=100.110.$ip3.255 > /etc/sysconfig/network-scripts/ifcfg-eth0Įcho NETWORK=100.110.$ip3.0 > /etc/sysconfig/network-scripts/ifcfg-eth0Įcho GATEWAY=100.110.$ip3.1 > /etc/sysconfig/network-scripts/ifcfg-eth0Įcho $ > /etc/hostname This is what I have in the %pre section of my Kickstart: %pre -log /tmp/pre-install.log ![]() Therefor I am starting to think this is not even possible? So far I got most working, however for some reason if I use variables in the %pre section of my Kickstart script, then it does not get parsed over to the configuration at all. I am trying to Kickstart newer servers of us with CentOS 7. I don't know if this is possible, but going to ask anyways. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |