Jerry Vonau wrote:
Warren Togami wrote:
> anaconda --targetarch=i586 would install i586 packages instead of
> i686. I need chroot-creator to do the equivalent so the resulting
> chroot can work on both i586 and i686 clients. i586 clients are
> common with LTSP.
>
It broke about the same time the yum back-end came into use.
And I found is my fix (posted to anaconda-devel Oct/07), you'll need to
update the line numbers.
--- yuminstall.py.orig 2007-10-08 16:03:59.000000000 -0500
+++ yuminstall.py 2007-10-08 21:07:06.000000000 -0500
@@ -900,6 +900,20 @@
'system-config-securitylevel-tui']:
self.selectPackage(pkg)
+ def fake586(self):
+ ### Jerry's hack ###
+ myarch = rhpl.arch.canonArch
+ log.info("Detected %s as arch", myarch)
+ # now allow an override with targetarch=i586 on the command line
+ if flags.targetarch == "i586":
+ myarch2 = flags.targetarch
+ log.info("Detected cmdline targetarch %s as arch", myarch2)
+ # now make the current install believe it, too
+ for pkg586 in ['glibc.i386', 'kernel.i586']:
+ self.selectPackage(pkg586)
+ log.info("Selected %s for installation", pkg586)
+ ### end ###
+
def doPostSelection(self, anaconda):
# Only solve dependencies on the way through the installer,
not the way back.
if anaconda.dir == DISPATCH_BACK:
@@ -909,6 +923,7 @@
self.ayum.dsCallback = dscb
# do some sanity checks for kernel and bootloader
+ self.fake586()
self.selectBestKernel(anaconda)
self.selectBootloader()
self.selectFSPackages(anaconda.id.fsset, anaconda.id.diskset)