From: Dara Adib Date: Sun, 5 Jul 2026 00:17:42 +0000 (-0400) Subject: repart: allow empty EncryptedVolume= volume name X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f53c00af401e90f362c03c8e84a7efb4699f25cd;p=thirdparty%2Fsystemd.git repart: allow empty EncryptedVolume= volume name Treat an empty volume name alongside other fields as unset instead of rejecting it as invalid. --- diff --git a/src/repart/repart.c b/src/repart/repart.c index e0e494a6f29..a28cc0c7cf3 100644 --- a/src/repart/repart.c +++ b/src/repart/repart.c @@ -2700,7 +2700,9 @@ static int config_parse_encrypted_volume( return 0; } - if (!filename_is_valid(volume)) { + if (isempty(volume)) + volume = mfree(volume); + else if (!filename_is_valid(volume)) { log_syntax(unit, LOG_WARNING, filename, line, 0, "Volume name %s is not valid, ignoring", volume); return 0;