The dd is ext4 type.
parted is not detecting ext4 - and instead passing "PRIMARY" in mkpart.
This wont work on ext4
primary is only used in logical or msdos partition types.
Create a new partition. **part-type may be specified only with msdos and dvh partition tables**, it should be one of "primary", "log‐
ical", or "extended". name is required for GPT partition tables and fs-type is optional. fs-type can be one of "btrfs", "ext2",
"ext3", "ext4", "fat16", "fat32", "hfs", "hfs+", "linux-swap", "ntfs", "reiserfs", "udf", or "xfs".
The dd is ext4 type. parted is not detecting ext4 - and instead passing "PRIMARY" in mkpart.
This wont work on ext4
primary is only used in logical or msdos partition types.