In the script mode the resizepart command does not work. See the discussion here about four years ago ([1] - [3]).
Thanks, Arvin [1] https://alioth-lists.debian.net/pipermail/parted-devel/2017-September/005105.html [2] https://alioth-lists.debian.net/pipermail/parted-devel/2017-September/005110.html [3] https://alioth-lists.debian.net/pipermail/parted-devel/2017-November/005134.html -- Arvin Schnell, <aschn...@suse.com> Senior Software Engineer, Research & Development SUSE Software Solutions Germany GmbH Maxfeldstraße 5 90409 Nürnberg Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer