Skip to content

Commit

Permalink
blivet: Add patch to set NTFS formattable
Browse files Browse the repository at this point in the history
Even though the ntfs3g utilities are available inside our test
environment, the format didn't get advertised as formattable because the
_formattable attribute wasn't set to True.

Submitted upstream at:

storaged-project/blivet#536

Signed-off-by: aszlig <[email protected]>
  • Loading branch information
aszlig committed Jan 15, 2017
1 parent 135f831 commit e2a2448
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/python-modules/blivet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ buildPythonPackage rec {
# Only works with Python 3!
disabled = !isPy3k;

patches = [ ./no-hawkey.patch ./test-fixes.patch ./uuids.patch ];
patches = [
./no-hawkey.patch ./test-fixes.patch ./uuids.patch ./ntfs-formattable.patch
];

postPatch = ''
cat > blivet/kickstart_stubs.py <<EOF
Expand Down
16 changes: 16 additions & 0 deletions pkgs/development/python-modules/blivet/ntfs-formattable.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Submitted upstream at:

https://github.com/rhinstaller/blivet/pull/536

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index 67517d6..9693840 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -1026,6 +1026,7 @@ class NTFS(FS):
_type = "ntfs"
_labelfs = fslabeling.NTFSLabeling()
_resizable = True
+ _formattable = True
_min_size = Size("1 MiB")
_max_size = Size("16 TiB")
_packages = ["ntfsprogs"]

0 comments on commit e2a2448

Please sign in to comment.