Re: [PATCH 2/4] Support rootpath overrides in fsset.rootDevice (#519665)

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Disregard, updated patch coming up.

On Tue, 1 Sep 2009, David Cantrell wrote:

If you override rootpath on the anaconda command line, the rootDevice
property will return None because it's looking for a device with mount
point "/" rather than the path you passed to --rootpath.
---
storage/__init__.py |    7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 3c3a243..e8e581f 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1762,13 +1762,18 @@ class FSSet(object):

    @property
    def rootDevice(self):
+        rootpath = self.anaconda.rootPath
+
+        if not rootpath:
+            rootpath = "/"
+
        for device in self.devices:
            try:
                mountpoint = device.format.mountpoint
            except AttributeError:
                mountpoint = None

-            if mountpoint == "/":
+            if mountpoint == rootpath:
                return device

    @property


- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkqdsTYACgkQ5hsjjIy1VknAlQCeOUzxm5ZJxXfSDOdCgyjNq1KO
jlQAoIi8V7/hhqZELYc3Ye6dLYpptpR5
=XFkq
-----END PGP SIGNATURE-----

_______________________________________________
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