Option '-s' is supposed to mean "never prompt for user intervention". Unfortunately, shrinking a partition still emits a prompt. Worse, there is no way to ack the prompt, the operation always fails. Ugly workaround: don't use '-s', and add "yes" to the command line.