Re: [PATCH] Don't write optical devices to /etc/fstab (#505697).

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

 



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

On Fri, 10 Jul 2009, Chris Lumens wrote:

---
storage/__init__.py |    4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 03b9876..934b5ec 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1851,6 +1851,10 @@ class FSSet(object):
            if not device.format.mountable and device.format.type != "swap":
                continue

+            # Don't write out lines for optical devices, either.
+            if isinstance(device, OpticalDevice):
+                continue
+
            fstype = getattr(device.format, "mountType", device.format.type)
            if fstype == "swap":
                mountpoint = "swap"


Looks fine.

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

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

iEYEARECAAYFAkpX0H8ACgkQ5hsjjIy1VkmQGgCgsrkNGi0uGIEnLRH3uvPYnN+3
K/kAn2tN2cGgkxMDEhvU8smg3TP8wDcZ
=nj/W
-----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