From 458d82a3b28a65a1c9aad7a57ea2645f9b873fa1 Mon Sep 17 00:00:00 2001 From: huweihua Date: Wed, 19 Nov 2014 03:32:12 -0500 Subject: [PATCH] fix defect4407: Cloned rhels7 node doesn't have IP address in rh7 --- xCAT/postscripts/configefi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/configefi b/xCAT/postscripts/configefi index 81fd70ad4..3f6b06cff 100644 --- a/xCAT/postscripts/configefi +++ b/xCAT/postscripts/configefi @@ -22,7 +22,7 @@ if [ "$arch" = "x86_64" ]; then efibootmgr -c -l \\EFI\\redhat\\grubx64.efi -L syscloneLinux boot_root=`mount | grep -E ' on\s+/ type ' | awk '{print $1}'` - sed -i 's| root=\S*| root='$boot_root'|' /boot/efi/EFI/redhat/grub.cfg + sed -i 's| root=\S*| root='$boot_root' net.ifnames=0|' /boot/efi/EFI/redhat/grub.cfg blkid -c /dev/null |grep UUID|while read str_line do @@ -129,7 +129,7 @@ elif [ "$arch" = "ppc64" ]; then dd if=/boot/grub2/grub of=/dev/sda1 bs=4096 boot_root=`mount | grep -E ' on\s+/ type ' | awk '{print $1}'` - sed -i 's| root=UUID=\S*| root='$boot_root'|' /boot/grub2/grub.cfg + sed -i 's| root=UUID=\S*| root='$boot_root' net.ifnames=0|' /boot/grub2/grub.cfg blkid -c /dev/null |grep UUID|while read str_line do