[iso] add kernel options update for Red Hat derivatives

* Since version 8.2, and rhinstaller/anaconda@a766101954,
  Red Hat derivatives have changed their CD-ROM detection policy which leads to
  the installation source not being found when writing the media in ISO mode.
* Replace 'inst.stage2' by 'inst.repo' in the kernel options.
* Closes #1777 (See also rhinstaller/anaconda#rhinstaller/anaconda#3529).
* Note that this reverts part of 9c8fa40995.
This commit is contained in:
Pete Batard 2021-10-01 16:46:35 +02:00
parent 83ea7103e3
commit c09ede16b3
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
4 changed files with 16 additions and 25 deletions

View file

@ -372,6 +372,15 @@ static void fix_config(const char* psz_fullpath, const char* psz_path, const cha
uprintf(" Patched %s: '%s' ➔ '%s'\n", src, iso_label, usb_label);
modified = TRUE;
}
//
// 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.
//
if (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;
}
}
safe_free(iso_label);
safe_free(usb_label);