From ccfa70d8c855cf66c2c2310be355a29fec36ef96 Mon Sep 17 00:00:00 2001 From: huweihua Date: Wed, 22 Oct 2014 05:23:43 -0400 Subject: [PATCH] support lvm in legacy mode on x system --- xCAT/postscripts/configefi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/configefi b/xCAT/postscripts/configefi index 1fc433126..b5cc4e54c 100644 --- a/xCAT/postscripts/configefi +++ b/xCAT/postscripts/configefi @@ -31,7 +31,8 @@ if [ "$arch" = "x86_64" ]; then grep -v rootfs /proc/mounts > /etc/mtab boot_device='' if [ -f "/etc/systemconfig/systemconfig.conf" ];then - boot_root=`cat /etc/systemconfig/systemconfig.conf | grep ROOTDEV | awk '{print $3}'` + #boot_root=`cat /etc/systemconfig/systemconfig.conf | grep ROOTDEV | awk '{print $3}'` + boot_root=`mount | grep -E ' on\s+/ type ' | awk '{print $1}'` boot_device=`cat /etc/systemconfig/systemconfig.conf | grep BOOTDEV | awk '{print $3}'` else boot_root=`mount | grep -E ' on\s+/ type ' | awk '{print $1}'`