aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2007-03-27 16:23:53 +0000
committerAndrew Gaffney <agaffney@gentoo.org>2007-03-27 16:23:53 +0000
commitfb8a3fc01721e817f6a668ebbaed20a73b204709 (patch)
treef9cfea0561fb41c90b8a7a181cbaea08000e00d2
parentadd kernel arguments entry field and activate 'doscsi' detection code (diff)
downloadgli-fb8a3fc01721e817f6a668ebbaed20a73b204709.tar.gz
gli-fb8a3fc01721e817f6a668ebbaed20a73b204709.tar.bz2
gli-fb8a3fc01721e817f6a668ebbaed20a73b204709.zip
fstab code can handle swap or linux-swap now
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@1839 f8877401-5920-0410-a79b-8e2d7e04ca0d
-rw-r--r--src/GLIArchitectureTemplate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GLIArchitectureTemplate.py b/src/GLIArchitectureTemplate.py
index 774785f..2093625 100644
--- a/src/GLIArchitectureTemplate.py
+++ b/src/GLIArchitectureTemplate.py
@@ -220,7 +220,7 @@ class ArchitectureTemplate:
newfstab = ""
mounts = self._install_profile.get_mounts()
for mount in mounts:
- if mount['type'] == "linux-swap":
+ if mount['type'] in ("swap", "linux-swap"):
newfstab += mount['devnode']+"\t none swap sw 0 0\n"
continue #Stop here and move on.
if not mount['mountopts'].strip(): mount['mountopts'] = "defaults"