Hi Peng, That's pretty much how I would do it, with the difference of making use of postinstall to automate.
https://xcat-docs.readthedocs.io/en/stable/guides/admin-guides/manage_clusters/common/deployment/prepostscripts/postinstall_script.html Cheers, Carl. On Sun, 18 Nov 2018 at 10:35 am, peter CZ1 Peng <peng...@lenovo.com> wrote: > Hi ,sir > > I am looking for a solution on the non-rpm package that I want to install > for a netboot image > > > > Here is my image definition : > > > > [root@mgt ~]# lsdef -t osimage gui75 > > Object name: gui75 > > exlist=/opt/xcat/share/xcat/netboot/rh/compute.rhels7.x86_64.exlist_no > > imagetype=linux > > osarch=x86_64 > > osdistroname=rhels7.5-x86_64 > > osname=Linux > > osvers=rhels7.5 > > otherpkgdir=/install/post/otherpkgs/rhels7.5/x86_64 > > otherpkglist=/opt/xcat/share/xcat/netboot/rh/gui75_other.pkglist > > permission=755 > > pkgdir=/install/rhels7.5/x86_64 > > pkglist=/opt/xcat/share/xcat/netboot/rh/gui75.pkglist > > > postinstall=/opt/xcat/share/xcat/netboot/rh/compute.rhels7.x86_64.postinstall > > profile=compute > > provmethod=netboot > > rootimgdir=/install/netboot/rhels7.5/x86_64/gui75 > > > > > > I know how to install the third party RPM pack in the otherpkgdir and > otherpkglist , but if for the package that is not rpm format ,like the > python modele is tgz or wheel format ,how to install in when genimage run > ? > > > > My temp solution is chroot to the rootdir after genimage done to manully > install with pip3 command ,I think there should be some way like the > postinstall script to do it ,but I don’t know how ,any advice is > appreciated ,thanks > > > > Here is some pip format package I want to install into the diskless image : > > > > certifi-2018.4.16-py2.py3-none-any.whl pip-10.0.1-py2.py3-none-any.whl > PyQt5-5.10.1-5.10.1-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl > requests-2.18.4-py2.py3-none-any.whl > sip-4.19.8-cp36-cp36m-manylinux1_x86_64.whl > > chardet-3.0.4-py2.py3-none-any.whl pip-9.0.3-py2.py3-none-any.whl > pysmi-0.1.3-py2.py3-none-any.whl > setuptools-39.0.1-py2.py3-none-any.whl urllib3-1.22-py2.py3-none-any.whl > > idna-2.6-py2.py3-none-any.whl pyasn1-0.3.4-py2.py3-none-any.whl > pysnmp-4.3.9-py2.py3-none-any.whl > setuptools-39.1.0-py2.py3-none-any.whl > > > > > > > > *Peter CZ peng* > Department :Complex Solution Rack TE > Address:ISH3 Shenzhen > > Lenovo China > > [image: Phone]+86 86361590 > [image: Email]+86 18129979128 > [image: VOIP]609 1590 > [image: Email]peng...@lenovo.com <zengd...@lenovo.com> > > > > Lenovo.com /www.lenovo.com <http://www.lenovo.com/www.lenovo.com> > Twitter <http://twitter.com/lenovo> | *Facebook* | Instagram > <https://instagram.com/lenovo> | Blogs <http://blog.lenovo.com/> | Forums > <http://forums.lenovo.com/> > > [image: Lenovo_2015] > > > > > _______________________________________________ > xCAT-user mailing list > xCAT-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xcat-user >
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user