Skip to content

Commit

Permalink
Always show Supplemental Packs dialog if Driver Disks are used.
Browse files Browse the repository at this point in the history
In interactive mode, when Driver Disks are used as local media, they
must *also* be installed as Supplemental Packs after installation.
This change remembers the use of Driver Disks and makes sure the
question is asked, even when the supplemental-packs feature is
disabled.

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Oct 31, 2023
1 parent 3ca3be0 commit 9db0dde
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ def add_repos(main_repositories, update_repositories, repos):
if r.accessor().canEject():
r.accessor().eject()

if interactive and constants.HAS_SUPPLEMENTAL_PACKS:
if interactive and (constants.HAS_SUPPLEMENTAL_PACKS or
"driver-repos" in answers):
# Add supp packs in a loop
while True:
media_ans = dict(answers_pristine)
Expand Down
4 changes: 4 additions & 0 deletions doc/features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ Currently available feature flags are:

This only impacts the UI, the <source> answerfile construct still
allows to include supplemental packs without this feature flag.

This also has no impact if users previously load a driver disk:
they will get the opportunity to insert it again to get the driver
installed on the host.
3 changes: 3 additions & 0 deletions tui/installer/screens.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def fn10():
tui.fcoe.select_fcoe_ifaces(answers)
tui.update_help_line([None, "<F9> load driver"])

if driver_answers['driver-repos']:
answers['driver-repos'] = driver_answers['driver-repos']

tui.screen.popHelpLine()

if button == 'reboot':
Expand Down

0 comments on commit 9db0dde

Please sign in to comment.