mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-12 02:45:33 +00:00
image_signing: work around shar invocation changing
The shar utility changed the flag name and newer versions no longer accept -w. Mung the shellball on the fly to use the newer flag. BUG=chrome-os-partner:33719 TEST=signing old firmware shellball inside chroot passes BRANCH=none Change-Id: If5c2da3062bd72062baa779bb26ea56304c31558 Reviewed-on: https://chromium-review.googlesource.com/241064 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Commit-Queue: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
c8c87b3264
commit
4edc75daa6
@@ -389,6 +389,10 @@ repack_firmware_bundle() {
|
||||
return 1
|
||||
elif grep -q '^##CUTHERE##' "${target}"; then
|
||||
# Bundle supports repacking.
|
||||
# Workaround issue crosbug.com/p/33719
|
||||
sed -i \
|
||||
's/shar -Q -q -x -m -w/shar -Q -q -x -m --no-character-count/' \
|
||||
"${target}"
|
||||
"$target" --sb_repack "${input_dir}" ||
|
||||
die "Updating firmware autoupdate (--sb_repack) failed."
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user