[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Don't write removable devices to /etc/fstab (#505697).
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] Don't write removable devices to /etc/fstab (#505697).
- Date: Fri, 10 Jul 2009 12:03:31 -0400
---
storage/__init__.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/storage/__init__.py b/storage/__init__.py
index 03b9876..7996d00 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 removable devices, either. Let the desktop do it.
+ if device.removable:
+ continue
+
fstype = getattr(device.format, "mountType", device.format.type)
if fstype == "swap":
mountpoint = "swap"
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]