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

[PATCH V2 1/2] Add support for HFS+ partitions



We'll want to actually create HFS+ partitions, so add the missing bits
for that.
---
 anaconda.spec.in                 |    1 +
 pyanaconda/storage/formats/fs.py |    7 ++++++-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/anaconda.spec.in b/anaconda.spec.in
index 07557e9..7966b93 100644
--- a/anaconda.spec.in
+++ b/anaconda.spec.in
@@ -135,6 +135,7 @@ Requires: zenity
 %endif
 Requires: createrepo >= %{createrepover}
 Requires: squashfs-tools
+Requires: hfsplus-tools
 Requires: genisoimage >= %{genisoimagever}
 Requires: GConf2 >= %{gconfversion}
 %ifarch %{ix86} x86_64
diff --git a/pyanaconda/storage/formats/fs.py b/pyanaconda/storage/formats/fs.py
index 0942402..ccafa41 100644
--- a/pyanaconda/storage/formats/fs.py
+++ b/pyanaconda/storage/formats/fs.py
@@ -1357,11 +1357,16 @@ class AppleBootstrapFS(HFS):
 register_device_format(AppleBootstrapFS)
 
 
-# this doesn't need to be here
 class HFSPlus(FS):
     _type = "hfs+"
     _modules = ["hfsplus"]
     _udevTypes = ["hfsplus"]
+    _mkfs = "mkfs.hfsplus"
+    _fsck = "fsck.hfsplus"
+    _packages = ["hfsplus-tools"]
+    _formattable = True
+    _minSize = 1
+    _maxSize = 2 * 1024 * 1024
     partedSystem = fileSystemType["hfs+"]
 
 register_device_format(HFSPlus)
-- 
1.7.7.6


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