All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [yocto] [PATCH] dm-verity-img.bbclass: detect veritysetup failure
       [not found] <17508E12CA70B264.28404@lists.yoctoproject.org>
@ 2023-03-28 14:03 ` Zygmunt Krynicki
  0 siblings, 0 replies; only message in thread
From: Zygmunt Krynicki @ 2023-03-28 14:03 UTC (permalink / raw)
  To: yocto

> diff --git a/classes/dm-verity-img.bbclass b/classes/dm-verity-img.bbclass
> index d809985..60e535b 100644
> --- a/classes/dm-verity-img.bbclass
> +++ b/classes/dm-verity-img.bbclass
> @@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-28 14:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <17508E12CA70B264.28404@lists.yoctoproject.org>
2023-03-28 14:03 ` [yocto] [PATCH] dm-verity-img.bbclass: detect veritysetup failure Zygmunt Krynicki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.