Add revised code from @davidone #12062
Update __virtual__ for parted dependencies
Merge pull request #12069 from techhat/issue12062

Parted updates as per @davidone