kpmcore/src/ops
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 Add deactivating VG operation. 2016-08-15 17:20:50 +01:00
backupoperation.cpp Add a shorter Partition::State enum names. 2018-04-09 03:46:05 +01:00
backupoperation.h Restore functionality of FileSystem::findExternal 2018-03-31 23:49:37 +01:00
checkoperation.cpp Mark LVM PV as mounted if it is part of Volume Group. 2016-10-30 01:47:29 +01:00
checkoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
copyoperation.cpp Switch to scoped name PartitionTable::Flag:: 2019-02-09 18:04:44 +00:00
copyoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
createfilesystemoperation.cpp Improve semantic markup of translations. 2016-07-17 23:41:00 +01:00
createfilesystemoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
createpartitiontableoperation.cpp Add SoftwareRAID::Status enum. 2018-07-15 13:11:50 -03:00
createpartitiontableoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
createvolumegroupoperation.cpp - Including vgName in CreateVolumeGroupOperation description. 2018-05-07 21:55:49 -03:00
createvolumegroupoperation.h - Including vgName in CreateVolumeGroupOperation description. 2018-05-07 21:55:49 -03:00
deactivatevolumegroupoperation.cpp Switch Device::Type enum to enum class. 2018-04-09 02:57:45 +01:00
deactivatevolumegroupoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
deleteoperation.cpp Operations should check LvmDevice::s_DirtyPVs instead of check pending CreateVolumeGroupOperations to search for newly LVM PVs. 2018-07-15 19:41:44 -03:00
deleteoperation.h Operations should check LvmDevice::s_DirtyPVs instead of check pending CreateVolumeGroupOperations to search for newly LVM PVs. 2018-07-15 19:41:44 -03:00
newoperation.cpp Add new job to set the GPT partition label 2020-03-25 11:20:01 -04:00
newoperation.h Add new job to set the GPT partition label 2020-03-25 11:20:01 -04:00
operation.cpp Check if PartitionNode::insert returns success. 2018-10-19 20:18:39 +01:00
operation.h d-pointerize Operation class. 2018-04-11 03:52:46 +03:00
operation_p.h Add forgotten files. 2018-04-11 15:14:17 +03:00
removevolumegroupoperation.cpp Adding LvmDevice::s_OrphanPVs shared list to store PVs paths that are member of VGs that will be deleted soon. 2018-07-23 13:34:40 -03:00
removevolumegroupoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
resizeoperation.cpp Fix free space handling with LVM LVs. 2018-10-19 19:55:35 +01:00
resizeoperation.h Operations should check LvmDevice::s_DirtyPVs instead of check pending CreateVolumeGroupOperations to search for newly LVM PVs. 2018-07-15 19:41:44 -03:00
resizevolumegroupoperation.cpp Convert more enums to scoped enums. 2018-04-09 15:14:34 +01:00
resizevolumegroupoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
restoreoperation.cpp Fix setting partition path when restoring partitions. 2019-05-10 02:12:07 +01:00
restoreoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
setfilesystemlabeloperation.cpp Improve semantic markup of translations. 2016-07-17 23:41:00 +01:00
setfilesystemlabeloperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
setpartflagsoperation.cpp Improve semantic markup of translations. 2016-07-17 23:41:00 +01:00
setpartflagsoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00