[f17-branch master] handle 'cdrom' methodstr (#817084)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Brian C. Lane" <bcl@xxxxxxxxxx>

When dracut finds 'cdrom' in a kickstart it sets inst.repo=cdrom
yuminstall.py needs to treat this as a special case meaning that
it should use the first cdrom found, either the one mounted as the
install media, or by scanning attached devices.
---
 pyanaconda/yuminstall.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 7688ccc..0ca534b 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -422,11 +422,13 @@ class AnacondaYum(yum.YumBase):
         # whatever) is mounted yet since initramfs only mounts the source
         # for the stage2 image.  We need to set up the source mount
         # now.
+        # methodstr == cdrom is a special case, meaning the first cdrom found
+        # by scanning or previously mounted as the install source.
         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:
+        elif self.anaconda.methodstr and self.anaconda.methodstr != "cdrom":
             m = self.anaconda.methodstr
 
             if m.startswith("hd:"):
-- 
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux