This issue https://github.com/xcat2/xcat-core/issues/4520 and associated PR https://github.com/xcat2/xcat-core/pull/4521 added the removal of the link. Perhaps the removal of the old link is ok, but instead of the "copy" we should "link" $rootimg_dir/usr/share/zoneinfo/$timezone[0]" and "$rootimg_dir/etc/localtime" ? Mark Gurevich Poughkeepsie Development Lab HPC Software Development - xCAT "If we knew what it was we were doing, it would not be called research, would it?" --Albert Einstein From: "Thomas HUMMEL" <thomas.hum...@pasteur.fr> To: <xcat-user@lists.sourceforge.net> Date: 08/05/2021 01:55 PM Subject: [EXTERNAL] Re: [xcat-user] packimage -m tar and /etc/localtime On 05/08/2021 17:44, Mark Gurevich wrote: > Yes the code for this appears to be in function copybootscript() in > /opt/xcat/lib/perl/xCAT_plugin/packimage.pm > > my @timezone = xCAT::TableUtils->get_site_attribute("timezone"); > : > : > : > if ($timezone[0]) { > unlink("$rootimg_dir/etc/localtime"); > copy("$rootimg_dir/usr/share/zoneinfo/$timezone[0]", > "$rootimg_dir/etc/localtime"); Thanks for your answer. But do you think that removing the link is legit ? Also, I cannot really remove timezone attribute from site as it it used for stateful templates... Thanks for your help -- Thomas HUMMEL _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user