summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/fsset.py b/fsset.py
index c51faf93f..dbcc4d41a 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1124,6 +1124,11 @@ class FileSystemSet:
insertAt = 0
+ # Special case for /.
+ if newEntry.mountpoint == "/":
+ self.entries.insert(insertAt, newEntry)
+ return
+
# doesn't matter where these get added, so just put them at the end
if not newEntry.mountpoint or not newEntry.mountpoint.startswith("/") or self.entries == []:
self.entries.append(newEntry)