Skip to content
Permalink
Browse files

Update installer binaries (support OS version/patch level in bootimg)

Signed-off-by: James Christopher Adduono <jc@adduono.com>
  • Loading branch information...
jcadduono committed Apr 7, 2019
1 parent b8719f6 commit 24174d5f3511c66c9fb2f20be20efb09eabae07a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -115,7 +115,7 @@ dump_boot() {

# determine the format the ramdisk was compressed in
determine_ramdisk_format() {
magicbytes=$(hexdump -vn2 -e '2/1 "%.2x"' "$split_img/boot.img-ramdisk")
magicbytes=$(hexdump -vn2 -e '2/1 "%.2x"' "$split_img/ramdisk")
case "$magicbytes" in
425a) rdformat=bzip2; decompress="$bin/bzip2 -dc" ;;
1f8b|1f9e) rdformat=gzip; decompress="gzip -dc" ;;
@@ -148,7 +148,7 @@ determine_ramdisk_format() {
# extract the old ramdisk contents
dump_ramdisk() {
cd "$ramdisk"
$decompress < "$split_img/boot.img-ramdisk" | cpio -i
$decompress < "$split_img/ramdisk" | cpio -i
[ $? != 0 ] && abort "Unpacking ramdisk failed"
}

@@ -237,7 +237,7 @@ samsung_tag() {

# sign the boot image with futility if it was a ChromeOS boot image
sign_chromeos() {
[ -f "$split_img/boot.img-chromeos" ] || return
[ -f "$split_img/chromeos" ] || return
print "Signing ChromeOS boot image..."
cd "$tmp"
mv boot-new.img boot-new-unsigned.img

0 comments on commit 24174d5

Please sign in to comment.
You can’t perform that action at this time.