Thanks Carl
The problem with postscripts is that it is not work in chroot mode , so
my temp solution is chroot to manually install . another concern is that I
don’t know if the pip3 install xxx.whl will have some scripts like RPM to setup
the environment ,also the pip3 install xxx.whl will not support like –rootdir
similar instruction . if anybody have better solution and can share with me
,it would be great help ,thanks
Peter CZ peng
Department :Complex Solution Rack TE
Address:ISH3 Shenzhen
Lenovo China
+86 86361590
+86 18129979128
609 1590
[email protected]<mailto:[email protected]>
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/>
[Lenovo_2015]
From: Carl <[email protected]>
Sent: Monday, November 19, 2018 4:27 AM
To: xCAT Users Mailing list <[email protected]>
Subject: [External] Re: [xcat-user] how to install the non-rpm package into the
diskless image when genimage
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
<[email protected]<mailto:[email protected]>> 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
+86 86361590
+86 18129979128
609 1590
[email protected]<mailto:[email protected]>
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/>
[Lenovo_2015]
_______________________________________________
xCAT-user mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user