summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2006-02-03 18:34:12 +0000
committerPeter Jones <pjones@redhat.com>2006-02-03 18:34:12 +0000
commitb80603879b3212fc51ae05ffdaf7377a4f439407 (patch)
tree64e341ad3c5143534dd1c00caf64c931f07b4295
parent4fb804c86f04a750b9733a9eac069db929ac97fe (diff)
downloadanaconda-b80603879b3212fc51ae05ffdaf7377a4f439407.tar.gz
anaconda-b80603879b3212fc51ae05ffdaf7377a4f439407.tar.xz
anaconda-b80603879b3212fc51ae05ffdaf7377a4f439407.zip
- don't put "mapper/" in the swap label
-rw-r--r--ChangeLog5
-rw-r--r--fsset.py3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c314839ae..b3124bb91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-03 Peter Jones <pjones@redhat.com>
+
+ * fsset.py (swapFileSystem.labelDevice): don't put "mapper/" in the
+ swap label
+
2006-02-03 Jeremy Katz <katzj@redhat.com>
* anaconda (dispatch): Patch to update steps skipped for rootpath
diff --git a/fsset.py b/fsset.py
index aff24a8ad..91b2c8236 100644
--- a/fsset.py
+++ b/fsset.py
@@ -778,8 +778,11 @@ class swapFileSystem(FileSystemType):
# nodes (#176074)
if devName[0:6] == "cciss/":
swapLabel = "SW-%s" % (devName)
+ elif devName.startswith("mapper/"):
+ swapLabel = "SWAP-%s" % (devName[7:],)
else:
swapLabel = "SWAP-%s" % (devName)
+ swapLabel = swapLabel[0:
label = labelFactory.createLabel("%s" %swapLabel, self.maxLabelChars)
rc = iutil.execWithRedirect ("/usr/sbin/mkswap",
[ "mkswap", '-v1', "-L", label, file ],