- # install individual packages, then groups
- packages=$(pl_getPackages $fcdistro $pldistro $pkgsfile)
- groups=$(pl_getGroups $fcdistro $pldistro $pkgsfile)
+ ### install individual packages, then groups
+ # get target arch - use uname -i here (we want either x86_64 or i386)
+ vserver_arch=$($personality vserver $vserver exec uname -i)
+
+ packages=$(pl_getPackages -a $vserver_arch $fcdistro $pldistro $pkgsfile)
+ groups=$(pl_getGroups -a $vserver_arch $fcdistro $pldistro $pkgsfile)