kpmcore/src
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
..
backend Add new job to set the GPT partition label 2020-03-25 11:20:01 -04:00
core Fix minor typo 2019-11-22 15:45:18 +02:00
fs Add a missing features.h include. 2020-02-08 22:01:24 +00:00
gui Do not align partitions if they are mounted. 2019-10-05 12:08:20 +01:00
jobs Add new job to set the GPT partition label 2020-03-25 11:20:01 -04:00
ops Add new job to set the GPT partition label 2020-03-25 11:20:01 -04:00
plugins Add new job to set the GPT partition label 2020-03-25 11:20:01 -04:00
util SVN_SILENT made messages (.desktop file) - always resolve ours 2020-03-11 06:00:21 +01:00
CMakeLists.txt Use KF5::AuthCore instead of KF5::Auth 2019-02-16 00:25:37 +01:00
Messages.sh Remove kcfg and kcfgc files. 2015-07-21 12:44:40 +02:00