From cba4d2e93b488c8efe301809718760f1be92b449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20PORTAY?= Date: Wed, 18 Mar 2020 17:11:05 -0400 Subject: [PATCH] [partition] Name partition using filesystem label --- src/modules/partition/core/PartitionLayout.cpp | 1 + src/modules/partition/partition.conf | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/core/PartitionLayout.cpp b/src/modules/partition/core/PartitionLayout.cpp index 23332f3f5..7d2c70159 100644 --- a/src/modules/partition/core/PartitionLayout.cpp +++ b/src/modules/partition/core/PartitionLayout.cpp @@ -237,6 +237,7 @@ PartitionLayout::execute( Device* dev, PartitionInfo::setMountPoint( currentPartition, part.partMountPoint ); if ( !part.partLabel.isEmpty() ) { + currentPartition->setLabel( part.partLabel ); currentPartition->fileSystem().setLabel( part.partLabel ); } // Some buggy (legacy) BIOSes test if the bootflag of at least one partition is set. diff --git a/src/modules/partition/partition.conf b/src/modules/partition/partition.conf index 6fbb44cb4..08c7c75d1 100644 --- a/src/modules/partition/partition.conf +++ b/src/modules/partition/partition.conf @@ -112,7 +112,9 @@ defaultFileSystemType: "ext4" # size: 100% # # There can be any number of partitions, each entry having the following attributes: -# - name: partition label +# - name: filesystem label +# and +# partition name (gpt only; since KPMCore 4.2.0) # - filesystem: filesystem type # - mountPoint: partition mount point # - size: partition size in bytes (append 'K', 'M' or 'G' for KiB, MiB or GiB)