mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 23:42:16 +02:00
mrc.sh: Make proper use of variable inside printf
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-2
@@ -35,8 +35,8 @@ extract_partition()
|
|||||||
dd if="${1%.zip}" of="root-a.ext2" bs=1024 skip=$(( $START / 1024 )) \
|
dd if="${1%.zip}" of="root-a.ext2" bs=1024 skip=$(( $START / 1024 )) \
|
||||||
count=$(( $SIZE / 1024 )) || $err "ex dd ${1%.zip}, root-a.ext2"
|
count=$(( $SIZE / 1024 )) || $err "ex dd ${1%.zip}, root-a.ext2"
|
||||||
|
|
||||||
printf "cd /usr/sbin\ndump chromeos-firmwareupdate $SHELLBALL\nquit" \
|
printf "cd /usr/sbin\ndump chromeos-firmwareupdate %s\nquit" \
|
||||||
| debugfs "root-a.ext2" || $err "can't extract shellball"
|
"$SHELLBALL" | debugfs "root-a.ext2" || $err "!extract shellball"
|
||||||
}
|
}
|
||||||
|
|
||||||
extract_refcode()
|
extract_refcode()
|
||||||
|
|||||||
Reference in New Issue
Block a user