diff options
| author | Leah Rowe <leah@libreboot.org> | 2023-12-21 16:16:11 +0000 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2023-12-21 16:16:11 +0000 | 
| commit | 493ebdfb74a7b0f4a5b23b4bdf80936247a67a47 (patch) | |
| tree | 93f8b5781b6f86c1c66643b0b814e513e001b786 | |
| parent | 1153bc3b6c607c5c941f362c8cd56c4967c02134 (diff) | |
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 <leah@libreboot.org>
| -rwxr-xr-x | include/mrc.sh | 12 | 
1 files changed, 1 insertions, 11 deletions
| 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}" -} | 
