CentOS7 custom - PXE installation

Issues related to configuring your network
Post Reply
msc_andy
Posts: 1
Joined: 2018/08/07 12:14:34

CentOS7 custom - PXE installation

Post by msc_andy » 2018/08/07 12:32:27

I have a custom CentOS 7 iso that is currently deployed on several systems with USB installation.
I have a pxe system setup that is capable of performing the same installation via network based on the same source.
The installation works and the result is basically identical.
There is one minor difference though.
During usb install it looks like this:
usb.PNG
usb.PNG (99.93 KiB) Viewed 755 times
With install via pxe:
usb.PNG
usb.PNG (99.93 KiB) Viewed 755 times
As you can see the Network configuration for all attached interfaces is activated.
This results in different looking content of /etc/sysconfig/network-scripts/ifcfg-eth0
The file was # Generated by dracut initrd.

It looks like this:
# Generated by dracut initrd
NAME="eth0"
DEVICE="eth0"
ONBOOT=yes
NETBOOT=yes
UUID="6cdcd66d-025a-404c-b939-3cfa1a28784d"
IPV6INIT=yes
BOOTPROTO=dhcp
TYPE=Ethernet
HWADDR=1c:98:ec:1a:1a:4c

Normally it looks like this:
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eth0
UUID=3dad178d-7a9e-4418-a80a-c10225dfdf30
DEVICE=eth0
ONBOOT=no
HWADDR=1c:98:ec:1a:0a:cc
ZONE=public


ZONE=public is added in a post script and it was not added.

Is it possible to deactivate the network configuration during installation even though I have to connect 1 interface to be able to boot from pxe?
My goal is to have the installation identical with pxe.
The ifcfg files shouldn't be created by dracut, at least not for the resulting OS.

any ideas?

Post Reply