diff --git a/backend.py b/backend.py index 5bcbefa5..09467a27 100644 --- a/backend.py +++ b/backend.py @@ -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) diff --git a/doc/features.txt b/doc/features.txt index 57e656d7..6f240e7b 100644 --- a/doc/features.txt +++ b/doc/features.txt @@ -14,3 +14,7 @@ Currently available feature flags are: This only impacts the UI, the 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. diff --git a/tui/installer/screens.py b/tui/installer/screens.py index ceac8669..975015ea 100644 --- a/tui/installer/screens.py +++ b/tui/installer/screens.py @@ -99,6 +99,9 @@ def fn10(): tui.fcoe.select_fcoe_ifaces(answers) tui.update_help_line([None, " load driver"]) + if driver_answers['driver-repos']: + answers['driver-repos'] = driver_answers['driver-repos'] + tui.screen.popHelpLine() if button == 'reboot': @@ -482,10 +485,14 @@ def confirm_erase_volume_groups(answers): return RIGHT_FORWARDS def use_extra_media(answers): + message = "Would you like to install any Supplemental Packs?" + if "driver-repos" in answers: + message += (" You previously loaded one or more Driver Disks, if you wish to" + " include these drivers on the installed system, you must install them now.") rc = snackutil.ButtonChoiceWindowEx( tui.screen, "Supplemental Packs", - "Would you like to install any Supplemental Packs?", + message, ['Yes', 'No'], default=1, help='suppack' )