[PATCH 2/2] fix swaps added to fstab for noformat
Gene Czarcinski
gene at czarc.net
Fri Oct 18 19:44:51 UTC 2013
There are three and not two possible situations for a swap:
a new partition/logical volume, reformat an existing partition or
logical volume and do not format (--noformat) a partition
or logical volume.
---
pyanaconda/kickstart.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 4624fce..f7dadb4 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -742,6 +742,8 @@ class LogVolData(commands.logvol.F20_LogVolData):
dev.format.mountpoint = self.mountpoint
dev.format.mountopts = self.fsopts
+ if ty == "swap":
+ storage.addFstabSwap(dev)
return
# Make sure this LV name is not already used in the requested VG.
@@ -1000,6 +1002,8 @@ class PartitionData(commands.partition.F18_PartData):
dev.format.mountpoint = self.mountpoint
dev.format.mountopts = self.fsopts
+ if ty == "swap":
+ storage.addFstabSwap(dev)
return
# Now get a format to hold a lot of these extra values.
--
1.8.3.1
More information about the anaconda-patches
mailing list