diff options
author | Peter Jones <pjones@redhat.com> | 2006-02-03 18:34:12 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-02-03 18:34:12 +0000 |
commit | b80603879b3212fc51ae05ffdaf7377a4f439407 (patch) | |
tree | 64e341ad3c5143534dd1c00caf64c931f07b4295 | |
parent | 4fb804c86f04a750b9733a9eac069db929ac97fe (diff) | |
download | anaconda-b80603879b3212fc51ae05ffdaf7377a4f439407.tar.gz anaconda-b80603879b3212fc51ae05ffdaf7377a4f439407.tar.xz anaconda-b80603879b3212fc51ae05ffdaf7377a4f439407.zip |
- don't put "mapper/" in the swap label
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | fsset.py | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -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 @@ -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 ], |