Files
tripleo-image-elements/elements/interface-names/install.d/70-clear-net-ifnames
Alex Schultz 8da8d9a51b Clear net.ifnames definition
With RHEL8, net.ifnames is set to 0 in the grub config. This is a change
in the default image which can have user impacts. We want to clear it to
go back to the previously defined behavior in RHEL7.

Change-Id: I621066ea5e0e934668ff4c91e991a95d18e019f7
Closes-Bug: #1841441
2019-08-27 07:44:14 -06:00

11 lines
267 B
Bash
Executable File

#!/bin/bash
set -eux
set -o pipefail
if [ -f /etc/default/grub ]; then
# net.ifacenames is defined and set to 0 starting with RHEL8.
# This is a change from RHEL7 which can affect network configurations.
sed -i 's/net.ifnames=0//g' /etc/default/grub
fi