addkit - add check for tarfile with missing product rpms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14376 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2d46ee327a
commit
18dc0460ef
@ -772,6 +772,15 @@ sub addkit
|
||||
# should be a tar.bz2 file
|
||||
|
||||
$basename = basename($kit);
|
||||
# If this kit was built without rpms, user will need to
|
||||
# run buildkit addpkgs to add the rpms to the kit tarfile
|
||||
# before addkit can be run
|
||||
if ( $basename =~ /.NEED_PRODUCT_PKGS.tar.bz2/ ) {
|
||||
my %rsp;
|
||||
push@{ $rsp{data} }, "This kit tar file was built without product packages. You will need to separately obtain your product packages, install the xCAT-buildkit rpm, and run the buildkit addpkgs command to add the rpms to the $kit file.";
|
||||
xCAT::MsgUtils->message( "E", \%rsp, $callback );
|
||||
return 1;
|
||||
}
|
||||
$basename =~ s/.tar.bz2//;
|
||||
$kittmpdir = "/tmp/" . $basename;
|
||||
chmod(0666, "$kittmpdir/*");
|
||||
|
Loading…
Reference in New Issue
Block a user