kpmcore/src/plugins/sfdisk
Gaël PORTAY f585f6c3ad Add new job to set the GPT partition label
The GPT partition layout supports naming partitions.

The support for the partition label was added in the backend libparted
since commit 28fa6ac (Add support for GTP partition labels).

The libparted was removed later by commit 8fa1814 (Remove libparted
backend) and no backend sets the partition label.

The CLI sfdisk sets the partition label using the option --part-label.
See the examples below:

	$ cat <<EOF | sfdisk disk.img
	label: gpt
	type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, size=64M
	type=0FC63DAF-8483-4772-8E79-3D69D8477DE4
	EOF
	(...)

	$ sfdisk --part-label disk.img 1 efi
	(...)

	$ sfdisk --part-label disk.img 2 rootfs
	(...)

	$ sfdisk --dump disk.img
	(...)
	disk.img1 : start=        2048, size=      131072, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=D08E5B2A-4649-9F4A-AEA3-6C3048888EAA, name="efi"
	disk.img2 : start=      133120, size=     1963999, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=0BEEFE82-19EA-DC4C-BB6A-27B6DA0C3BD2, name="rootfs"

This commit introduces the new job set-partition-label that is used in
the new-operation to set the label of the partition. The job uses the
newly introduced method setPartitionLabel that is implemented by the
sfdisk and dummy backends.
2020-03-25 11:20:01 -04:00
..
CMakeLists.txt Allow copyblocks to be used together with small QByteArrays. 2018-10-29 00:02:12 +00:00
pmsfdiskbackendplugin.json SVN_SILENT made messages (.desktop file) - always resolve ours 2020-02-07 05:43:45 +01:00
sfdiskbackend.cpp Add support for Minix(Mini Unix) Filesystem 2019-06-09 00:01:30 +05:30
sfdiskbackend.h Add scanDevices function that uses flags instead of bools. 2019-02-09 15:40:06 +00:00
sfdiskdevice.cpp Remove ExternalCommand::waitFor. 2018-07-21 21:19:34 +01:00
sfdiskdevice.h Use smart pointers for CoreBackendPartitionTable. 2018-03-31 21:49:20 +01:00
sfdiskpartitiontable.cpp Add new job to set the GPT partition label 2020-03-25 11:20:01 -04:00
sfdiskpartitiontable.h Add new job to set the GPT partition label 2020-03-25 11:20:01 -04:00