curtin-dev team mailing list archive
-
curtin-dev team
-
Mailing list archive
-
Message #02769
[Merge] ~dbungert/curtin:ntfsresize-force into curtin:master
Dan Bungert has proposed merging ~dbungert/curtin:ntfsresize-force into curtin:master.
Commit message:
block: ntfsresize with force options
To match Ubiquity behavior, we should run ntfsresize with the force
options and sending 'y\n' on input.
Requested reviews:
curtin developers (curtin-dev)
For more details, see:
https://code.launchpad.net/~dbungert/curtin/+git/curtin/+merge/441347
--
Your team curtin developers is requested to review the proposed merge of ~dbungert/curtin:ntfsresize-force into curtin:master.
diff --git a/curtin/commands/block_meta_v2.py b/curtin/commands/block_meta_v2.py
index 552ab98..7e51690 100644
--- a/curtin/commands/block_meta_v2.py
+++ b/curtin/commands/block_meta_v2.py
@@ -85,7 +85,7 @@ def resize_ext(path, size):
def resize_ntfs(path, size):
- util.subp(['ntfsresize', '-s', str(size), path])
+ util.subp(['ntfsresize', '-f', '-s', str(size), path], data='y\n')
def perform_resize(kname, resize):
Follow ups