From 15061d46a9cc30a367aa1c746880d8673ba49660 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 0018c5142..573498317 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -2135,6 +2135,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=();