From 288ffa7b681f60908da2c0430ddfbc474281ec86 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Wed, 26 Nov 2014 01:23:27 -0500 Subject: [PATCH] Enhance of fix bug 4381 :sles12 rcons could not work on P8LE. For ubuntu LE diskless --- .../xcat/netboot/ubuntu/compute.postinstall | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall b/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall index 892a8ee49..828e706cd 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall +++ b/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall @@ -41,19 +41,3 @@ END #for ext in pkglist exlist postinstall repolist; do # [ -r $workdir/$profile.$ext ] && cat $workdir/$profile.$ext | grep -E '^[[:space:]]*#.*[[:space:]]\$Id' >> $installroot/etc/IMGVERSION #done -if echo "$arch" | grep -i 'ppc64'; then - CONSOLE="hvc0" -for i in `cat /proc/cmdline`; do - KEY=`echo $i|cut -d= -f 1` - if [ "$KEY" == "console" -a "$i" != "console=tty0" ]; then - CONSOLEPARAM=$i - CONSOLE=`echo $i | cut -d= -f 2 | cut -d, -f 1` - fi -done -if [[ -r $installroot/etc/default/grub ]]; then - sed -i "s/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"console=$CONSOLE\"/" $installroot/etc/default/grub -else - echo "GRUB_CMDLINE_LINUX_DEFAULT=\"console=$CONSOLE\"" > $installroot/etc/default/grub -fi -#update-grub -fi