id128: add 'var-partition-uuid' verb

As per DPS the UUID for /var/ should be keyed by the local machine-id,
which is non-trivial to do in a script. Enhance 'systemd-id128' to
take 'var-partition-uuid' as a verb, and if so perform the
calculation.
This commit is contained in:
Luca Boccassi
2024-07-17 18:05:40 +02:00
committed by Luca Boccassi
parent d9b1ec27f7
commit 09edabe96a
5 changed files with 45 additions and 8 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ _systemd_id128() {
)
local -A VERBS=(
[STANDALONE]='new machine-id boot-id invocation-id help'
[STANDALONE]='new machine-id boot-id invocation-id var-partition-uuid help'
[ARG]='show'
)