Re: [xcat-user] Proper way to upgrade images

2018-11-08 Thread Song BJ Yang
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 ` to copy in the installation resources to  without osimage creation or overwritten 
2. run `mkdef -t osimage -o  --template  pkgdir=` 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 ` and `packimage`  to generate the updated osimage
--YANG Song (杨嵩)IBM China System Technology LaboratoryTel: 86-10-82452903Email: yang...@cn.ibm.comAddress: 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" To: xCAT Users Mailing list Cc:Subject: [xcat-user] Proper way to upgrade imagesDate: 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 listxCAT-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/xcat-user 
 


___
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user


[xcat-user] Proper way to upgrade images

2018-11-08 Thread Vinícius Ferrão
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
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user