From 493ebdfb74a7b0f4a5b23b4bdf80936247a67a47 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 21 Dec 2023 16:16:11 +0000 Subject: mrc.sh: remove redundant extraction logic the extract_archive function already provides use of unzip, and works just fine (for mrc.bin extraction) Signed-off-by: Leah Rowe --- include/mrc.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'include') diff --git a/include/mrc.sh b/include/mrc.sh index d4c94e5d..9cb64e69 100755 --- a/include/mrc.sh +++ b/include/mrc.sh @@ -19,7 +19,7 @@ extract_mrc() x_ cd "${appdir}" extract_partition extract_shellball - extract_coreboot + extract_archive "${SHELLBALL}" . ) || err "mrc download/extract failure" "${cbfstool}" "${appdir}/"bios.bin extract -n mrc.bin \ @@ -51,13 +51,3 @@ extract_shellball() printf "cd /usr/sbin\ndump chromeos-firmwareupdate ${SHELLBALL}\nquit" \ | debugfs "${ROOTFS}" || err "extract_shellball: debugfs" } - -extract_coreboot() -{ - _unpacked=$( mktemp -d ) - - printf "Extracting coreboot image\n" - [ -f "${SHELLBALL}" ] || \ - err "extract_coreboot: shellball missing in google cros image" - x_ unzip "${SHELLBALL}" -} -- cgit v1.2.1