From 358959724d571944e166a87de7e7461cef27dfa6 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 21 Nov 2013 14:16:20 +0800 Subject: [PATCH] fix for bug 4422: fix the ubuntu template problem with x86_64 kvm virtual machnes --- xCAT-server/share/xcat/install/ubuntu/compute.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 xCAT-server/share/xcat/install/ubuntu/compute.tmpl diff --git a/xCAT-server/share/xcat/install/ubuntu/compute.tmpl b/xCAT-server/share/xcat/install/ubuntu/compute.tmpl old mode 100644 new mode 100755 index d3b3a79c8..01c1c74ac --- a/xCAT-server/share/xcat/install/ubuntu/compute.tmpl +++ b/xCAT-server/share/xcat/install/ubuntu/compute.tmpl @@ -53,7 +53,7 @@ d-i partman/early_command string \ rm /tmp/devs-with-boot 2>/dev/null || true; \ else \ DEV=`ls /dev/disk/by-path/* -l | egrep -o '/dev.*sd[^0-9]$' | sort -t : -k 1 -k 2 -k 3 -k 4 -k 5 -k 6 -k 7 -k 8 -g | head -n1 | egrep -o 'sd.*$'`; \ - if [[ $DEV == "" ]]; then DEV="sda"; fi; \ + if [[ "$DEV" == "" ]]; then DEV="sda"; fi; \ echo "/dev/$DEV" > /tmp/boot_disk; \ fi; \ debconf-set partman-auto/disk "$(cat /tmp/boot_disk)"