From fd1bb9d873d6b3ce519f5965f0af00b6128a5e29875ebc557018c0e7a6a99863 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Wed, 22 Jan 2014 16:32:51 +0000 Subject: [PATCH] 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 --- parted-resize-command.patch | 2 +- parted.changes | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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