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
> 

-- 
*Hakan BAYINDIR*
Başuzman Araştırmacı
Ağ Teknolojileri Birimi
TÜBİTAK ULAKBİM
T.C. Bilim, Sanayi ve Teknoloji Bakanlığı (Eski Bina)
Mustafa Kemal Mahallesi Dumlupınar Bulvarı
(Eskişehir Yolu 7.Km) 2151.Cadde No:154
ODTÜ Karşısı
06510 Çankaya, ANKARA
T +90 312 298 9373
F +90 312 266 5181
www.ulakbim.gov.tr <http://www.ulakbim.gov.tr>
[email protected]
................................................................................................................................

<http://www.tubitak.gov.tr>

Sorumluluk Reddi <http://www.tubitak.gov.tr/sorumlulukreddi>

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
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