summaryrefslogtreecommitdiffstats
path: root/partedUtils.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-09-27 19:30:17 +0000
committerJeremy Katz <katzj@redhat.com>2004-09-27 19:30:17 +0000
commit1b33c8b803aa49757c1e54b91eb644178e038a82 (patch)
treeae8f707996b08ac74255e9220d81015edfdd8ca2 /partedUtils.py
parent7e18ebe28650324292a6911f12763a9f61f6f6fa (diff)
downloadanaconda-1b33c8b803aa49757c1e54b91eb644178e038a82.tar.gz
anaconda-1b33c8b803aa49757c1e54b91eb644178e038a82.tar.xz
anaconda-1b33c8b803aa49757c1e54b91eb644178e038a82.zip
2004-09-27 Jeremy Katz <katzj@redhat.com>
* partedUtils.py (sniffFilesystemType): Don't accept version 0 swaps as swap
Diffstat (limited to 'partedUtils.py')
-rw-r--r--partedUtils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/partedUtils.py b/partedUtils.py
index 44f9c8266..99ecf9987 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -430,8 +430,8 @@ def sniffFilesystemType(device):
if buf.startswith("XFSB"):
return "xfs"
- if (buf[pagesize - 10:] == "SWAP-SPACE" or
- buf[pagesize - 10:] == "SWAPSPACE2"):
+ # 2.6 doesn't support version 0, so we don't like SWAP-SPACE
+ if (buf[pagesize - 10:] == "SWAPSPACE2"):
return "swap"
if fsset.isValidReiserFS(dev):