diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-07-27 07:47:10 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-10-31 09:00:13 +0100 |
commit | f024b4c83d122ee460251a3078e9dca2e8d599ad (patch) | |
tree | 6d517007f787e96b9c3d5b088a9a0737a4e08ed8 | |
parent | 700f66ae950053afe03eedf5d1c37fc7c8c7d906 (diff) | |
download | upstream-f024b4c83d122ee460251a3078e9dca2e8d599ad.tar.gz upstream-f024b4c83d122ee460251a3078e9dca2e8d599ad.tar.bz2 upstream-f024b4c83d122ee460251a3078e9dca2e8d599ad.zip |
scripts/ubinize-image.sh: fix buildbot breakage
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 <yszhou4tech@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit c6d41c320c795b0bb9a9350c7d4b1ce55f25769a)
-rwxr-xr-x | scripts/ubinize-image.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ubinize-image.sh b/scripts/ubinize-image.sh index 09a00b1898..a18d6dc428 100755 --- a/scripts/ubinize-image.sh +++ b/scripts/ubinize-image.sh @@ -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() { |