Allow the i386 ramdisk to be used on x86_64. Part of a patch from Yu Ping Y.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-11-01 09:21:27 +00:00
1 parent 9855faf004
commit e1502fb422
1 file changed
+7 -1
+7 -1
View File
@@ -78,7 +78,13 @@ runnable_tests() {
eval $(./lib/XmTestReport/xmtest.py)
ARCH=$(uname -m | sed -e s/i.86/i386/ -e 's/ppc\(64\)*/powerpc/')
rrdver="initrd-${XM_TEST_MAJ}.${XM_TEST_MIN}-${ARCH}.img"
if [ "$realrd" != "$rrdver" ]; then
exp_flag=0
realarch=`echo $realrd | awk -F- '{print $3}' | awk -F. '{print $1}'`
rrdarch=`echo $rrdver | awk -F- '{print $3}' | awk -F. '{print $1}'`
if [ "$realarch" = "i386" -a "$rrdarch" = "x86_64" ]; then
exp_flag=1
fi
if [ $exp_flag -eq 0 -a "$realrd" != "$rrdver" ]; then
echo "Error: ramdisk/initrd.img is from an old version, or is not for this "
echo "architecture ($ARCH)."
echo "You need to build a ramdisk from at least ${XM_TEST_MAJ}.${XM_TEST_MIN}"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.