make-initrd: drop unused toValidStoreName local (#482823)

This commit is contained in:
Philip Taron
2026-01-22 22:43:14 +00:00
committed by GitHub

View File

@@ -81,12 +81,6 @@ in
_compressorMeta.ubootName
or (throw "Unrecognised compressor ${_compressorName}, please specify uInitrdCompression"),
}:
let
# !!! Move this into a public lib function, it is probably useful for others
toValidStoreName =
x: with builtins; lib.concatStringsSep "-" (filter (x: !(isList x)) (split "[^a-zA-Z0-9_=.?-]+" x));
in
stdenvNoCC.mkDerivation (
rec {
inherit