Re: [PATCH] Improve handling for various nodev filesystems in fstab. (#493685, #493202)

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

 



Looks good.

On 04/02/2009 04:44 PM, David Lehman wrote:
---
  storage/__init__.py |    5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 7c17ec8..e320cdb 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1248,10 +1248,11 @@ class FSSet(object):
          else:
              # nodev filesystem -- preserve or drop completely?
              format = getFormat(fstype)
-            if isinstance(format, get_device_format_class("nodev")):
+            if devspec == "none" or \
+               isinstance(format, get_device_format_class("nodev")):
                  device = NoDevice(format)
              else:
-                device = Device(devspec)
+                device = StorageDevice(devspec)

          if device is None:
              log.error("failed to resolve %s (%s) from fstab" % (devspec,


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

_______________________________________________
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