From 80b54be58ebcdaf92ee2ae8e991fb2b7de75be8f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 11 Nov 2013 15:31:32 -0500 Subject: [PATCH] Add ability for appliances to forbid 32 bit architectures for RHEL --- xCAT-server/lib/xcat/plugins/anaconda.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 7e622fff6..5a994003d 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -2134,6 +2134,11 @@ sub copycd return; } } + if ($::XCATSITEVALS{onlysupportarchs} and $::XCATSITEVALS{onlysupportarchs} ne $arch) { + $callback->({error => "$arch is unsupported by this system",errorcode=>2}); + return; + } + #tranverse the directory structure of the os media and get the fingerprint my @filelist=();