On Wed, Jan 05, 2011 at 13:32:03 -0800,
"Brian C. Lane" <bcl(a)redhat.com> wrote:
On Wed, Jan 05, 2011 at 03:15:22PM -0600, Bruno Wolff III wrote:
> On Wed, Jan 05, 2011 at 12:53:41 -0800,
> "Brian C. Lane" <bcl(a)redhat.com> wrote:
> > livecd-creator provides for some extensions to the repo commands similar
> > -to what yum supports. The strings $arch, $basearch and $releveasever
> > +to what yum supports. The strings $arch, $basearch and $releasever (when
--releasever is set)
>
> Why not have it default to the current installed system if it isn't set?
> Otherwise people will need to specify the option for any kickstart file
> that uses $releasever.
The problem with that is that you can't detect the current system in
some cases (eg. dgilmore's chroot problem).
Using the current system where obtainable (using say
yum.config._getsysver("/", "redhat-release")) and falling back to the
empty string if that doesn't work seems to be more user friendly.
In common usage the current system is pretty reasonable and if that isn't
the default, the releasever option will need to be specified all of the
time for kickstarts that use that string.