I have a diskless install and I would like to know how I am supposed to update
the OS packages in my OS image.
I created an offline repo of the latest RHEL OS packages using reposync. Then
I added the directory for the offline repos to pkgdir of the osimage. I
thought genimage would update the OS packages with the latest packages, but it
doesn't. Instead I copied the yum install command shown from genimage and
changed it to yum update instead. This installed updates for the OS packages
into the OS image. Is there an xcat command to do this instead?
Thanks in advance,
Kris Garrett
Bell Textron, Inc.
For reference:
My OS Image Info
# lsdef -t osimage node
Object name: node
exlist=/opt/xcat/share/xcat/netboot/rh/compute.rhels8.x86_64.exlist
imagetype=linux
kernelver=4.18.0-477.15.1.el8_8.x86_64
osarch=x86_64
osdistroname=rhels8.8.0-x86_64
osname=Linux
osvers=rhels8.8.0
otherpkgdir=/install/post/otherpkgs/rhels8.8.0/x86_64
permission=755
pkgdir=/install/rhels8.8.0/x86_64,/net/home/repos/rhel8/rhel-8-for-x86_64-appstream-rpms,/net/home/repos/rhel8/rhel-8-for-x86_64-baseos-rpms
pkglist=/opt/xcat/share/xcat/netboot/rh/compute.rhels8.x86_64.pkglist
postinstall=/opt/xcat/share/xcat/netboot/rh/compute.rhels8.x86_64.postinstall
profile=compute
provmethod=netboot
rootimgdir=/install/netboot/rhels8.8.0/x86_64/compute
synclists=/install/synclists/node.synclist
My yum update command
# yum -c /tmp/genimage.336382.yum.conf
--installroot=/install/netboot/rhels8.8.0/x86_64/compute/rootimg/
--disablerepo=* --releasever=8 --setopt=module_platform_id=platform:el8
--enablerepo=rhels8.8.0-x86_64-0 --enablerepo=rhels8.8.0-x86_64-1
--enablerepo=rhels8.8.0-x86_64-2 --enablerepo=rhels8.8.0-x86_64-3 update
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user