Hans De Goede spotted another way to make parted misbehave with hybrid GPT/MBR partition tables. The fix is tiny. Everything else is test factorization and adding the new one: 1/2 tests: factor utility functions into "library" 2/2 gpt: "read-only" operation could clobber the pMBR in another way