diff -up ./yuminstall.py.run ./yuminstall.py --- ./yuminstall.py.run 2009-12-02 12:44:17.000000000 -0600 +++ ./yuminstall.py 2009-12-05 02:11:21.000000000 -0600 @@ -414,7 +414,12 @@ class AnacondaYum(YumSorter): # whatever) is mounted yet since loader only mounts the source # for the stage2 image. We need to set up the source mount # now. - if self.anaconda.methodstr: + if flags.cmdline.has_key("preupgrade"): + path = "/var/cache/yum/preupgrade" + self.anaconda.methodstr = "hd::%s" % path + self._baseRepoURL = "file:///mnt/sysimage/%s" % path + + elif self.anaconda.methodstr: m = self.anaconda.methodstr if m.startswith("hd:"): @@ -422,10 +427,6 @@ class AnacondaYum(YumSorter): (device, path) = m[3:].split(":") else: (device, fstype, path) = m[3:].split(":") - - if flags.cmdline.has_key("preupgrade"): - self._baseRepoURL = "file:///mnt/sysimage/%s" % path - else: self.isodir = "/mnt/isodir/%s" % path # This takes care of mounting /mnt/isodir first.