On Thu, Dec 05, 2013 at 06:40:32PM +0100, Martin Kolman wrote:
Previously if a source url was specified by a bootoption
and mirrorlist was specified using the url --mirrorlist kickstart
command, both would be set. This confused Yum and created
hard to predict errors if the two repositories were out of sync.
Signed-off-by: Martin Kolman <mkolman(a)redhat.com>
---
anaconda | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/anaconda b/anaconda
index 865f51f..39e7392 100755
--- a/anaconda
+++ b/anaconda
@@ -969,6 +969,14 @@ if __name__ == "__main__":
anaconda.methodstr.startswith("ftp"):
ksdata.method.method = "url"
ksdata.method.url = anaconda.methodstr
+ # installation source specified by bootoption
+ # overrides source set from kickstart;
+ # the kickstart might have specified a mirror list,
+ # so we need to clear it here if plain url source is provided
+ # by a bootoption, because having both url & mirror list
+ # set at once is not supported and breaks Yum in
+ # unpredictable ways
+ ksdata.method.mirrorlist = None
elif anaconda.methodstr.startswith("livecd"):
ksdata.method.method = "harddrive"
device = anaconda.methodstr.split(":", 1)[1]
--
1.8.4.2
Ack.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)