I have tried to set up otherpkgs to install moab-torque rpms into a CentOS
7 stateless image . I have been using
http://sourceforge.net/p/xcat/wiki/Using_Provmethod%3Dosimagename/ as a
guide.  What I did:

   1. created a directory called /install/post/otherpkgs/centos/x86_64
   2. put the moab-torque-*.rpm files that I want in the image in that
   directory
   3. ran createrepo .
   4. created /install/custom/netboot/centos/compute.otherpkgs.pkglist with
   a line for each RPM
      -
      - moab-torque-client-5.1.1.2-1_18e4a5f1.EL7.x86_64.rpm
      - moab-torque-common-5.1.1.2-1_18e4a5f1.EL7.x86_64.rpm
      - moab-torque-mom-5.1.1.2-1_18e4a5f1.EL7.x86_64.rpm
   5. ran chdef:
      - chdef -t osimage centos7-x86_64-netboot-compute
      otherpkgdir=/install/post/otherpkgs/centos/x86_64/
      otherpkglist=/install/custom/netboot/centos/compute.otherpkgs.pkglist
   6. ran genimage for the centos7-x86_64-netboot-compute image

This is where it has problems. It sees that it needs to install those rpms
but it doesn't seem to be able to find the repo:

.
.
Cleaning repos: centos7-x86_64-0 otherpkgs1
Cleaning up everything
 yum -y -c /tmp/genimage.6697.yum.conf
--installroot=/install/netboot/centos7/x86_64/compute/rootimg/
--disablerepo=* --enablerepo=centos7-x86_64-0 --enablerepo=otherpkgs1
install   moab-torque-client-5.1.1.2-1_18e4a5f1.EL7.x86_64.rpm
moab-torque-common-5.1.1.2-1_18e4a5f1.EL7.x86_64.rpm
moab-torque-mom-5.1.1.2-1_18e4a5f1.EL7.x86_64.rpm
No package moab-torque-client-5.1.1.2-1_18e4a5f1.EL7.x86_64.rpm available.
No package moab-torque-common-5.1.1.2-1_18e4a5f1.EL7.x86_64.rpm available.
No package moab-torque-mom-5.1.1.2-1_18e4a5f1.EL7.x86_64.rpm available.

Error: Nothing to do


It is calling the repo "otherpkgs1". Is that what it is supposed to do?
When I ran step 3 it created a repodata directory in the same directory
that I had the rpms but I see no mention of otherpkgs1 in there.

​I seem to be missing something.

Thanks for your help.

Steve
------------------------------------------------------------------------------
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to