diff --git a/parted-resize-command.patch b/parted-resize-command.patch index ab27894..a87c531 100644 --- a/parted-resize-command.patch +++ b/parted-resize-command.patch @@ -76,7 +76,7 @@ Index: parted-3.1/parted/parted.c + start, end)) + goto error_destroy_constraint; + /* warn when shrinking partition - might lose data */ -+ if (part->geom.end < oldend) ++ if (!opt_script_mode && (part->geom.end < oldend)) + if (ped_exception_throw ( + PED_EXCEPTION_WARNING, + PED_EXCEPTION_YES_NO, diff --git a/parted.changes b/parted.changes index accabe5..0a4c0df 100644 --- a/parted.changes +++ b/parted.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jan 22 16:15:13 UTC 2014 - puzel@suse.com + +- Do not fail when shrinking the partition in non-interactive mode. +- modified patches: + * parted-resize-command.patch + ------------------------------------------------------------------- Wed Jan 8 15:32:34 UTC 2014 - puzel@suse.com