Skip to content

Commit

Permalink
Parse hidden_webui_pages option from anaconda.conf
Browse files Browse the repository at this point in the history
There was mismatch in the option name between front-end and back-end.
  • Loading branch information
KKoukiou committed Jan 22, 2025
1 parent 1eef18f commit 41c21fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const _ = cockpit.gettext;

export const getSteps = (userInterfaceConfig, ...args) => {
const mountPointMappingStep = new PageMountPointMapping(...args);
const hiddenScreens = userInterfaceConfig.hidden_screens || [];
const hiddenScreens = userInterfaceConfig.hidden_webui_pages || [];
const stepsOrder = [
new PageInstallationLanguage(...args),
new PageInstallationMethod(...args),
Expand All @@ -33,7 +33,7 @@ export const getSteps = (userInterfaceConfig, ...args) => {
/* Screens can be hidden in two ways:
* 1. Dynamically: Controlled by the 'Page.isHidden' method in individual components,
* e.g., see 'MountPointMapping.jsx'.
* 2. Statically: Configured via the 'hidden_screens' key in the 'anaconda.conf'
* 2. Statically: Configured via the 'hidden_webui_pages' key in the 'anaconda.conf'
* For example, the 'Account Creation' screen is hidden in the 'Workstation' ISO
* because this step is handled by the 'Gnome Initial Setup' tool during the first boot.
*/
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def pretend_live_iso(test, installer):
installer.steps.hidden_steps.extend([installer.steps.ACCOUNTS, installer.steps.LANGUAGE])
test.restore_file('/run/anaconda/anaconda.conf')
test.machine.execute("sed -i 's/type = BOOT_ISO/type = LIVE_OS/g' /run/anaconda/anaconda.conf")
test.machine.execute("sed -i '/[anaconda]/a hidden_screens = anaconda-screen-language anaconda-screen-accounts' /run/anaconda/anaconda.conf")
test.machine.execute("sed -i '/[anaconda]/a hidden_webui_pages = anaconda-screen-language anaconda-screen-accounts' /run/anaconda/anaconda.conf")

def pretend_default_scheme(test, scheme):
test.restore_file('/run/anaconda/anaconda.conf')
Expand Down

0 comments on commit 41c21fc

Please sign in to comment.