mrc.sh: Make proper use of variable inside printf

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-04-17 05:06:21 +01:00
parent 075902c3ea
commit 410fa702c9
+2 -2
View File
@@ -35,8 +35,8 @@ extract_partition()
dd if="${1%.zip}" of="root-a.ext2" bs=1024 skip=$(( $START / 1024 )) \
count=$(( $SIZE / 1024 )) || $err "ex dd ${1%.zip}, root-a.ext2"
printf "cd /usr/sbin\ndump chromeos-firmwareupdate $SHELLBALL\nquit" \
| debugfs "root-a.ext2" || $err "can't extract shellball"
printf "cd /usr/sbin\ndump chromeos-firmwareupdate %s\nquit" \
"$SHELLBALL" | debugfs "root-a.ext2" || $err "!extract shellball"
}
extract_refcode()