bug#58393: parted ignores "fs-type" in mkpart when it specified in command line

rva via Bug reports for the GNU Parted disk partition editor <[email protected]> Sun, 09 Oct 2022 00:34:37 +0300
Newsgroups gmane.comp.gnu.parted.bugs
Message-ID <[email protected]>
When running in command prompt (gpt disk with no partitions)
mkpart PartName ext4 1M 500M
partition is created and "print" command shows file system ext4
 
When running
parted /dev/sda mkpart PartName ext4 1M 500M
parted creates partition but "print" does show file system.
 
So "mkpart" works different in interactive mode and non-interactive (file system is ignored)