On 9/21/2017 2:57 PM, John Gilmore wrote: >> I always intended to come up with some way for a script that really >> wants to shrink an in use partition to indicate that so as to bypass >> this check, but otherwise to keep an errant script from trashing data. > > You could make a "shrinkpart" command that scripts could use. This > would pass a flag to libparted to distinguish it from "resizepart".
Come to think of it, that check isn't in libparted iirc, so parted proper could just check for a -f flag.

