From 28a95932a8b3351627da36279c637341117201ef Mon Sep 17 00:00:00 2001 From: fehlix Date: Fri, 27 Nov 2026 17:37:35 +0100 Subject: [PATCH] Leave the dkms private signing key out of snapshots for distribution "Resetting accounts (for distribution to others)" now excludes var/lib/dkms/mok.key - machine specific. mok.pub stays, as on the ISO, for the prebuilt dkms modules. Personal snapshots keep both. --- src/settings.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/settings.cpp b/src/settings.cpp index 21739b72..6d8d5228 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1386,6 +1386,9 @@ void Settings::otherExclusions() // matching entries from its state, so snapd registers anew. QStringLiteral("var/lib/snapd/device/private-keys-v1/*"), QStringLiteral("var/lib/snapd/assertions/asserts-v0/serial/*"), + // dkms private signing key: machine specific, not for distribution + // (mok.pub stays, as on the ISO, for the prebuilt dkms modules). + QStringLiteral("var/lib/dkms/mok.key"), }; for (const QString &exclusion : resetExcludes) { addRemoveExclusion(true, exclusion);