[PATCH] Set parted filesystemtype for swap partitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Our patch for adding support for the swap flag to parted msdos label handling
has been rejected upstream, upstream says we should use
ped_partition_set_system() instead. So do that, as I would like to drop this
patch from our parted package eventually.

This will also cause us to assign the right type to swap partitions in
GPT tables, so this patch should go to F-12 too.
---
 storage/formats/swap.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/storage/formats/swap.py b/storage/formats/swap.py
index 713ff58..b1f0d62 100644
--- a/storage/formats/swap.py
+++ b/storage/formats/swap.py
@@ -21,7 +21,7 @@
 #
 
 from iutil import log_method_call, numeric_type
-from parted import PARTITION_SWAP
+from parted import PARTITION_SWAP, fileSystemType
 from ..errors import *
 from ..devicelibs import swap
 from . import DeviceFormat, register_device_format
@@ -39,6 +39,7 @@ class SwapSpace(DeviceFormat):
     _name = None
     _udevTypes = ["swap"]
     partedFlag = PARTITION_SWAP
+    partedSystem = fileSystemType["linux-swap(v1)"]
     _formattable = True                # can be formatted
     _supported = True                  # is supported
     _linuxNative = True                # for clearpart
-- 
1.6.5.rc2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux