[PATCH] Save duplicates from /etc/fstab and don't traceback (#517498).

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

 



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

diff --git a/storage/__init__.py b/storage/__init__.py
index d05a8a5..a339d00 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1490,7 +1490,11 @@ class FSSet(object):
                     continue
 
                 if device not in self.devicetree.devices:
-                    self.devicetree._addDevice(device)
+                    try:
+                        self.devicetree._addDevice(device)
+                    except ValueError:
+                        # just write duplicates back out post-install
+                        self.preserveLines.append(line)
 
     def fsFreeSpace(self, chroot='/'):
         space = []
-- 
1.6.4

_______________________________________________
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