Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b245377f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Remove header version check for command "fastboot boot boot.img""

parents e3b149c7 d016ee4d
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -410,12 +410,6 @@ static void* load_bootable_image(const std::string& kernel, const std::string& r
        if (!g_cmdline.empty()) {
            bootimg_set_cmdline(reinterpret_cast<boot_img_hdr_v1*>(kdata), g_cmdline);
        }
        uint32_t header_version_existing =
                reinterpret_cast<boot_img_hdr_v1*>(kdata)->header_version;
        if (g_boot_img_hdr.header_version != header_version_existing) {
            die("header version mismatch, expected: %" PRIu32 " found %" PRIu32 "",
                g_boot_img_hdr.header_version, header_version_existing);
        }

        if (!ramdisk.empty()) die("cannot boot a boot.img *and* ramdisk");