Skip to content

Commit

Permalink
scripts/ubinize-image.sh: fix buildbot breakage
Browse files Browse the repository at this point in the history
New Docker based buildslaves install just bare minimum of packages, thus
not having bsdmainutils package installed which provides `hexdump`
utility, leading to the following build breakage on buildbots:

 ubinize-image.sh: 12: /builder/scripts/ubinize-image.sh: hexdump: not found

So this patch simply replaces `hexdump` with `od` utility provided by
coreutils package, which should be likely available.

Co-authored-by: Yousong Zhou <[email protected]>
Signed-off-by: Petr Štetiar <[email protected]>
  • Loading branch information
ynezz and yousong committed Jul 30, 2019
1 parent c3c3cd5 commit c6d41c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ubinize-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ outfile=""
err=""

get_magic_word() {
dd if=$1 bs=2 count=1 2>/dev/null | hexdump -v -n 2 -e '1/1 "%02x"'
dd if=$1 bs=2 count=1 2>/dev/null | od -A n -N 2 -t x1 | tr -d ' '
}

is_ubifs() {
Expand Down

0 comments on commit c6d41c3

Please sign in to comment.