I've tried several methods of using latest packages in kickstart. That is, I specifically defined the repo like this:
repo --name=Updates --baseurl=nfs://my-nfs-server:/media/linux/RHEL5U7_x86_64/Updates I ran createrepo in Updates dir first without using group file and second with defining comps.xml group file (-g option). In both instances, anaconda said it will ignore non-base repo or cannot find repomd.xml. I confirmed it was accessible. My solution was to replace the Server directory (from iso) with my Updates directory (that was created with -g option). Needless to say, my kickstart server uses RHEL5.5 kernel/stage2 to deploy RHEL5.7 OS, if it is ananconda bug, it was probably addressed in later release. Either way, missing accomplished, I'm able to deploy the OS with all recent packages as intended - without the need of the upgrade - which would double the time of OS deployment. Regards ilya -----Original Message----- From: rhelv5-list-boun...@redhat.com [mailto:rhelv5-list-boun...@redhat.com] On Behalf Of Jason Edgecombe Sent: Monday, October 17, 2011 6:21 PM To: rhelv5-list@redhat.com Subject: Re: [rhelv5-list] Kernel update via kickstart on rhel5.7 On 10/17/2011 09:43 AM, Greg Swift wrote: > On Mon, Oct 17, 2011 at 07:29,<vinc...@cojot.name> wrote: > >> On Sun, 16 Oct 2011, Musayev, Ilya wrote: >> >> I would agree with you if this would be an existing OS, but since it's a >>> fresh install and we burn tested the kernel, why keep both? >>> >> I tend to agree and most of *my* recent experience on RHEL5 and RHEL6 has >> proven this true to some extend, especially if it's a fresh install. >> >> That being said, since it's a kickstart install and if you own the >> kickstart server, why wouldn't you simply -replace- kernel-2.6.18-274 rpms >> with kernel-2.6.18-274.3.1 rpms in the tree (along with its dependencies, if >> any and rebuilding the comps and friends ). I used to re-base distribution >> trees this way since at least RHL 6.1 (not RHEL). :). >> > if you provide your custom built kernel in a repository that is enabled in > the kickstart wouldn't that mean the installer would automatically use the > latest (which yours hopefully is always numbered to be) and not require > extra work (and scripts) to handle? yes, that's correct. > repo --name=my-rhel5-kernels --baseurl= > http://kickstartserver/repo/myrhel5kernel > > I guess if you aren't keeping your custom build newer than the install > source it would be better another way, this just seems like it would be more > efficient since it seems to solve most of the discussion without worrying > about a post script or whether to have both kernels installed. > If your custom kernel RPM isn't newer, then you can still explicitly use the full kernel+version name (i.e. kernel-2.6.18-192.8.1.x86_64) in the %packages section of the kickstart file. I don't recall if the newer version will be installed in addition to the specified version. If both are installed, just remove the newer one in %post. Jason _______________________________________________ rhelv5-list mailing list rhelv5-list@redhat.com https://www.redhat.com/mailman/listinfo/rhelv5-list _______________________________________________ rhelv5-list mailing list rhelv5-list@redhat.com https://www.redhat.com/mailman/listinfo/rhelv5-list