Hi,
I do not think "issue an yum with installroot argument and fire up an upgrade" is a good idea, the basic idea is that you can always regenerate the desired osimage via `genimage`+`packimage`, so all the modifications/customizations upon the diskless osimage should be tracked with the osimage attributes such as `pkgdir`,`otherpkgdir`,`otherpkglist`,`postinstallscript`....
on your scenario, some reference steps can be:
1. run `copycds --noosimage <centos 7.5 iso>` to copy in the installation resources to <path> without osimage creation or overwritten
2. run `mkdef -t osimage -o <new osimage name for centos 7.5> --template <existing centos 7.4 osimage> pkgdir=<path>` to create the new osimage definition of centos 7.5 base on existing centos 7.4 osimage, all the attributes are same with centos 7.4 osimage, except the "pkgdir" is the path to the centos 7.5 iso copied in
3. run `genimage <new osimage name for centos 7.5>` and `packimage` to generate the updated osimage
------------------------------------------------------------------------------
YANG Song (杨嵩)
IBM China System Technology Laboratory
Tel: 86-10-82452903
Email: [email protected]
Address: Building 28, ZhongGuanCun Software Park,
No.8, Dong Bei Wang West Road, Haidian District Beijing 100193, PRC
北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193
YANG Song (杨嵩)
IBM China System Technology Laboratory
Tel: 86-10-82452903
Email: [email protected]
Address: Building 28, ZhongGuanCun Software Park,
No.8, Dong Bei Wang West Road, Haidian District Beijing 100193, PRC
北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193
----- Original message -----
From: "Vinícius Ferrão" <[email protected]>
To: xCAT Users Mailing list <[email protected]>
Cc:
Subject: [xcat-user] Proper way to upgrade images
Date: Fri, Nov 9, 2018 10:38 AM
Hello,
I would like to put on debate which is the proper way to upgrade images to different OS releases.
For example, I have this images on my system:
centos7.4-x86_64-install-compute (osimage)
centos7.4-x86_64-netboot-compute (osimage)
centos7.4-x86_64-statelite-compute (osimage)
Those are generated by the copycds command, I only use the netboot one. As you can see it was generated from a CentOS 7.4 DVD.
Now we are on the 7.5 days and I would like to upgrade this images to 7.5.
I can just issue an yum with installroot argument and fire up an upgrade. But this would properly update the image?
If yes, the naming would became confusing, since the image has gone to 7.5 but the name stays 7.4.
Someone may say that I need to reimport the images with copycds once again, but doing this, I will lose all the customisations of the image and software installed.
So, what’s the right procedure? What I’m missing?
Thanks,
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
