fix for bug 4422: fix the ubuntu template problem with x86_64 kvm virtual machnes

This commit is contained in:
ligc 2013-11-21 14:16:20 +08:00
parent 5d55cc5dbe
commit 358959724d

2
xCAT-server/share/xcat/install/ubuntu/compute.tmpl Normal file → Executable file
View File

@ -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)"