Fix parted-resize.patch - do not fail when shrinking a partition in noninteractive mode

OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=82
This commit is contained in:
Petr Uzel 2014-01-22 16:32:51 +00:00 committed by Git OBS Bridge
parent 688bfd6e83
commit fd1bb9d873
2 changed files with 8 additions and 1 deletions

View File

@ -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,

View File

@ -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