diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-03-01 04:35:26 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-03-01 04:35:26 +0000 |
commit | e14f1a66e990e50fd27430c620b8cee42d40a093 (patch) | |
tree | c5320f6f8f300bdf9491b3c633920bc75a240968 /fsset.py | |
parent | a8fa389a6fcb8081e7f99a6f8a043fe936eaf8b4 (diff) | |
download | anaconda-e14f1a66e990e50fd27430c620b8cee42d40a093.tar.gz anaconda-e14f1a66e990e50fd27430c620b8cee42d40a093.tar.xz anaconda-e14f1a66e990e50fd27430c620b8cee42d40a093.zip |
handle labels even on the not formatting case (#52544)
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1004,9 +1004,11 @@ class FileSystemSet: def makeFilesystems (self, chroot='/'): formatted = [] + notformatted = [] for entry in self.entries: if (not entry.fsystem.isFormattable() or not entry.getFormat() or entry.isMounted()): + notformatted.append(entry) continue try: self.formatEntry(entry, chroot) @@ -1029,6 +1031,17 @@ class FileSystemSet: # should be OK, we'll still use the device name to mount. pass + # go through and have labels for the ones we don't format + for entry in notformatted: + dev = entry.device.getDevice() + if not dev or dev == "none": + continue + label = isys.readExt2Label(dev) + if label: + entry.setLabel(label) + else: + self.labelEntry(entry, chroot) + def haveMigratedFilesystems(self): return self.migratedfs |