The following piece of code in genimage is making it impossible to install specific versions of packages during genimage time:
# run yum update to update any installed rpms
# needed when running genimage again after updating software in repositories
my $yumcmd_update = $yumcmd_base . " update ";
$rc = system("$yumcmd_update");
This really needs to be an optional flag of some sort.
Guang Cheng could you evaluate whether this is needed in the next release. Do we need more information.
Victor, could you work on this bug? Thanks.
Victor - I know we just closed this defect as "won't fix":
http://sourceforge.net/p/xcat/bugs/3681/
but that may actually be the correct solution to this problem.
If a user wants to replace an OS rpm with an older version, they could first do a remove ("- pkgname") in their osimage.pkglist file, then do the add of the older version in their otherpkgs.pkglist file.
However, this would only work if we do the yum upgrade BEFORE we do the otherpkgs processing.
A new flag is added to the genimage command: --noupdate
This flag will allow the user to bypass the automatic package update when installing other packages. WITHOUT specifying the new flag, the behavior of genimage remains unchanged.
Changes are made only to 2.9 release: b59f72bd8eb2f001c50652b0e0ad43287ee87a9e
Russell, there is no plan to fix the release you opened this on. You can easily bypass this behavior by commenting or deleting those lines of code you identified.
FYI , Had some discussions with Linda today, as she pointed out, Bug 3681 should be the solution for this. I will work on 3681 and once that is implemented, the --noupdate flag should no longer be needed to achieve this behavior... .