I was thinking that this must be CentOS - thanks for confirming that.
I was also thinking that a postscript could be used to interfere with
the update process.

I'm not sure if there is an official/best-practice approach to solving
this.

I would disable all non-xCAT repos with a post-script, and place that
in the list before otherpkgs.
In general I don't want my nodes getting updates from non-xCAT sources.

If you feel that you want that, you could create another postscript
that re-enables the non-xCAT repos and run that after otherpkgs.

I would avoid modifying otherpkgs because when you update xCAT later,
your changes could get overwritten. Or, if you make your own otherpkgs
variant, e.g. "my_otherpkgs", you would have to manually merge changes
from the stock otherpkgs into your version.

Good luck and let us know what you decide to do.



On Wed, 2017-10-04 at 16:18 +0300, Hakan Bayındır wrote:
> Hi Russ,
> 
> The default files for internet repositories are present. Base,
> Updates
> and Extras are enabled. My extra repository files and xCAT's own
> repositories are also present.
> 
> The systems get all the updates from the internet it seems.
> 
> How can I disable the default CentOS repositories then? I guess the
> answer is a small post-install script, but I'm interested in the best
> practice.
> 
> Thanks for all the help,
> 
> Regards,
> 
> Hakan
> 
> On 10/04/2017 03:37 PM, Russ Auld wrote:
> > You are correct - my mistake.
> > 
> > Can you look at the repo files that get created in
> > /etc/yum.repos.d/
> > (assuming RHEL/Centos)?
> > 
> > In general, the repos will be a result of the directories set for
> > "pkgdir" and directories called out in the otherpkgs file in the
> > osimage.
> > 
> > Are the machines reaching out to the internet for updates?
> > 
> > 
> > 
> > 
> > On Wed, 2017-10-04 at 15:18 +0300, Hakan Bayındır wrote:
> > > Hi Russ,
> > > 
> > > Thanks for your answer. To test, I reinstalled the host with only
> > > "otherpkgs" post boot script. After checking the duplicates (with
> > > /usr/bin/yum --showduplicates list <package-name>), it actually
> > > ran
> > > "yum
> > > -y upgrade" and upgraded to system to latest packages before
> > > installing
> > > my other packages.
> > > 
> > > Actually in file /install/postscripts/otherpkgs, line 783; the
> > > script
> > > explicitly calls result=`eval $envlist yum -y upgrade 2>&1` and
> > > upgrades
> > > the whole system.
> > > 
> > > I can modify the script, but wanted to ask whether there's a
> > > better
> > > way
> > > to modify behavior of the said script.
> > > 
> > > Regards,
> > > 
> > > Hakan
> > > 
> > > On 10/04/2017 02:27 PM, Russ Auld wrote:
> > > > I'm pretty sure that it does not update the operating system to
> > > > the
> > > > latest version automatically.
> > > > 
> > > > The "otherpkgs" postscript creates repos based on the files and
> > > > their
> > > > directories specified in the "otherpkgs" file set in the
> > > > "osimage".
> > > > It then uses the platform's package manager to install the
> > > > packages
> > > > listed in the "otherpkgs" file.
> > > > It doesn't run "yum update" (for instance) as you are
> > > > suggesting.
> > > > 
> > > > You should take a closer look at the postscripts that are being
> > > > run
> > > > and
> > > > the repositories that are created on the node.
> > > > 
> > > >  
> > > > On Wed, 2017-10-04 at 13:55 +0300, Hakan Bayındır wrote:
> > > > > Hello all,
> > > > > 
> > > > > The xCAT's otherpackages script updates the operating system
> > > > > to
> > > > > the
> > > > > latest version automatically. Is there a way, or best
> > > > > practice to
> > > > > install "other packages" without updating the operating
> > > > > system to
> > > > > the
> > > > > latest version?
> > > > > 
> > > > > Thanks in advance,
> > > > > 
> > > > > Regards,
> > > > > 
> > > > > Hakan Bayindir
> > > > > -----------------------------------------------------------
> > > > > ----
> > > > > ----
> > > > > -----------
> > > > > Check out the vibrant tech community on one of the world's
> > > > > most
> > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > > _______________________________________________
> > > > > xCAT-user mailing list
> > > > > [email protected]
> > > > > https://lists.sourceforge.net/lists/listinfo/xcat-user
> > > > 
> > > > -------------------------------------------------------------
> > > > ----
> > > > -------------
> > > > Check out the vibrant tech community on one of the world's most
> > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > _______________________________________________
> > > > xCAT-user mailing list
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/xcat-user
> > > > 
> > > 
> > > ---------------------------------------------------------------
> > > ----
> > > -----------
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > _______________________________________________
> > > xCAT-user mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/xcat-user
> > 
> > -----------------------------------------------------------------
> > -------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > xCAT-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/xcat-user
> > 
> 
> -------------------------------------------------------------------
> -----------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> xCAT-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to