[iso] finalize workaround for Red Hat 8 derivatives

* See #1777
This commit is contained in:
Pete Batard 2021-10-11 17:55:46 +01:00
parent 957ec183c9
commit 9cd7adaaaa
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
5 changed files with 30 additions and 10 deletions

View file

@ -380,10 +380,11 @@ static void fix_config(const char* psz_fullpath, const char* psz_path, const cha
}
//
// Since version 8.2, and https://github.com/rhinstaller/anaconda/commit/a7661019546ec1d8b0935f9cb0f151015f2e1d95,
// Red Hat derivatives have changed their CD-ROM detection policy which leads to the installation source not
// being found. So we need to use 'inst.repo' instead of 'inst.stage2' in the kernel options.
// Red Hat derivatives have changed their CD-ROM detection policy which leads to the installation source
// not being found. So we need to use 'inst.repo' instead of 'inst.stage2' in the kernel options.
//
if (replace_in_token_data(src, props->is_grub_cfg ? "linuxefi" : "append", "inst.stage2", "inst.repo", TRUE) != NULL) {
if (img_report.rh8_derivative && (replace_in_token_data(src, props->is_grub_cfg ?
"linuxefi" : "append", "inst.stage2", "inst.repo", TRUE) != NULL)) {
uprintf(" Patched %s: '%s' ➔ '%s'\n", src, "inst.stage2", "inst.repo");
modified = TRUE;
}