Thanks! I missed that somehow searching around. I'm glad there is a workaround at least.
On Mon, Aug 4, 2025, 5:57 PM Brian C. Lane <b...@redhat.com> wrote: > On Mon, Aug 04, 2025 at 04:19:02PM -0400, Casey Fitzpatrick wrote: > > When using resizepart with "-s" a warning prompt is still printed when > > shrinking a partition. Then the command fails without actually prompting > > for Yes/No. > > > > Seen using parted version 3.6: > > ``` > > $ sudo parted -s /dev/loop0 unit B resizepart 1 420478975 > > Warning: Shrinking a partition can cause data loss, are you sure you want > > to continue? > > $ echo $? > > 1 > > ``` > > parted defaults to not doing things that could lose data, so shrinking > is only supported in interactive mode. This comes up from time to time. > eg. > > https://lists.gnu.org/archive/html/bug-parted/2024-06/msg00000.html > > Brian > > -- > Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart > >