I found what the problem was. The page I was going by said:

Create a file that lists the additional rpms that should be installed. For
> example, in /install/custom/netboot/rh/compute.otherpkgs.pkglist put:
>
> myrpm1
> myrpm2
> myrpm3
>

​so I listed the full rpm file name. It turns out that it should be:

​Create a file that lists the packages that refer to the rpms. For instance
> if the RPM is my-package-4.3.2-1_18e4a5l.EL7.x86_64.rpm you should just put:
>

"my-package"
>
> ​ i​n the pkglist file.
>

​or something to that effect.​


On Thu, Oct 22, 2015 at 7:46 PM, Stephen Cousins <[email protected]>
wrote:

> 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.p
>       kglist
>    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
>



-- 
________________________________________________________________
 Steve Cousins             Supercomputer Engineer/Administrator
 Advanced Computing Group            University of Maine System
 244 Neville Hall (UMS Data Center)              (207) 561-3574
 Orono ME 04469                      steve.cousins at maine.edu
------------------------------------------------------------------------------
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to