diff options
| -rw-r--r-- | classes/dm-verity-img.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/dm-verity-img.bbclass b/classes/dm-verity-img.bbclass index 47f698c..48557e9 100644 --- a/classes/dm-verity-img.bbclass +++ b/classes/dm-verity-img.bbclass | |||
| @@ -71,12 +71,12 @@ process_verity() { | |||
| 71 | # two parts into separate variables and process them separately. For the | 71 | # two parts into separate variables and process them separately. For the |
| 72 | # key part: convert the names to upper case and replace spaces with | 72 | # key part: convert the names to upper case and replace spaces with |
| 73 | # underscores to create correct shell variable names. For the value part: | 73 | # underscores to create correct shell variable names. For the value part: |
| 74 | # just trim all white-spaces. | 74 | # just trim all white-spaces and remove units. |
| 75 | IFS=":" | 75 | IFS=":" |
| 76 | while read KEY VAL; do | 76 | while read KEY VAL; do |
| 77 | printf '%s=%s\n' \ | 77 | printf '%s=%s\n' \ |
| 78 | "$(echo "$KEY" | tr '[:lower:]' '[:upper:]' | sed 's/ /_/g')" \ | 78 | "$(echo "$KEY" | tr '[:lower:]' '[:upper:]' | sed 's/ /_/g')" \ |
| 79 | "$(echo "$VAL" | tr -d ' \t')" >> $ENV | 79 | "$(echo "$VAL" | tr -d ' \t' | sed 's/\[.*\]//')" >> $ENV |
| 80 | done | 80 | done |
| 81 | 81 | ||
| 82 | # Add partition size | 82 | # Add partition size |
