Skip to contentSkip to conversation

dm-verity-img.bbclass: detect veritysetup failure

PATCH Zygmunt Krynicki 1 participant 1 message Mar 28, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines
classes/dm-verity-img.bbclass +0 -0
index d809985..60e535b 100644

classes/dm-verity-img.bbclass process_verity() { · line 51

Quoted 9 lines
classes/dm-verity-img.bbclass +2 -0
@@ -43,12 +43,19 @@ process_verity() {
     # underscores to create correct shell variable names. For the value part:
     # just trim all white-spaces.
     IFS=":"
+    local N=0
     while read KEY VAL; do
         printf '%s=%s\n' \
             "$(echo "$KEY" | tr '[:lower:]' '[:upper:]' | sed 's/ /_/g')" \
             "$(echo "$VAL" | tr -d ' \t')" >> $ENV
+        N=$(expr N + 1)

This should have said $(expo $N + 1), I've only tested the failing case before submitting.

ZK