#4242 In physical rhel7 env,set installnic=ethx can not provision compute node.
This commit is contained in:
parent
7375805801
commit
8ee690c6a1
5
xCAT/postscripts/disableconsistentNICrename
Executable file
5
xCAT/postscripts/disableconsistentNICrename
Executable file
@ -0,0 +1,5 @@
|
||||
#/bin/sh
|
||||
#modify the grub.cfg to prevent nic consistent network renameing
|
||||
grep -E -q "net.ifnames=0" /etc/sysconfig/grub || sed -i '/^GRUB_CMDLINE_LINUX=.*/{s/"$/ net.ifnames=0"/}' /etc/sysconfig/grub
|
||||
grep -E -q "net.ifnames=0" /etc/default/grub || sed -i '/^GRUB_CMDLINE_LINUX=.*/{s/"$/ net.ifnames=0"/}' /etc/default/grub
|
||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
Loading…
Reference in New Issue
Block a user