I guess one thing we could do is if we run with --force-share and we don't get an error, we could check the stdout/err output for "unrecognized option '--force-share'" and if we find that, we need to run it again without --force-share (the version check was meant to handle that for us, but qemu-img and qemu-utils could be different package versions...).
I guess one thing we could do is if we run with --force-share and we don't get an error, we could check the stdout/err output for "unrecognized option '--force-share'" and if we find that, we need to run it again without --force-share (the version check was meant to handle that for us, but qemu-img and qemu-utils could be different package versions...).