diff --git a/src/core/partition.cpp b/src/core/partition.cpp index 5b7c3a0..7ca7d70 100644 --- a/src/core/partition.cpp +++ b/src/core/partition.cpp @@ -99,6 +99,8 @@ Partition::Partition(const Partition& other, PartitionNode* parent) : m_FirstSector(other.m_FirstSector), m_LastSector(other.m_LastSector), m_DevicePath(other.m_DevicePath), + m_Label(other.m_Label), + m_UUID(other.m_UUID), m_MountPoint(other.m_MountPoint), m_AvailableFlags(other.m_AvailableFlags), m_ActiveFlags(other.m_ActiveFlags), @@ -136,6 +138,8 @@ Partition& Partition::operator=(const Partition& other) m_FirstSector = other.m_FirstSector; m_LastSector = other.m_LastSector; m_DevicePath = other.m_DevicePath; + m_Label = other.m_Label; + m_UUID = other.m_UUID; m_PartitionPath = other.m_PartitionPath; m_MountPoint = other.m_MountPoint; m_AvailableFlags = other.m_AvailableFlags; diff --git a/src/plugins/sfdisk/sfdiskbackend.cpp b/src/plugins/sfdisk/sfdiskbackend.cpp index 6571bec..57a510d 100644 --- a/src/plugins/sfdisk/sfdiskbackend.cpp +++ b/src/plugins/sfdisk/sfdiskbackend.cpp @@ -365,7 +365,7 @@ QString SfdiskBackend::readLabel(const QString& deviceNode) const QStringLiteral("--query=property"), deviceNode }); udevCommand.run(); - QRegularExpression re(QStringLiteral("ID_FS_LABEL=(\\w+)")); + QRegularExpression re(QStringLiteral("ID_FS_LABEL=(.*)")); QRegularExpressionMatch reFileSystemLabel = re.match(udevCommand.output()); if (reFileSystemLabel.hasMatch()) return reFileSystemLabel.captured(1); @@ -380,7 +380,7 @@ QString SfdiskBackend::readUUID(const QString& deviceNode) const QStringLiteral("--query=property"), deviceNode }); udevCommand.run(); - QRegularExpression re(QStringLiteral("ID_FS_UUID=(\\w+)")); + QRegularExpression re(QStringLiteral("ID_FS_UUID=(.*)")); QRegularExpressionMatch reFileSystemUUID = re.match(udevCommand.output()); if (reFileSystemUUID.hasMatch()) return reFileSystemUUID.captured(1);