Update tests, docs and samples for the os_prober option

Cover os_prober in the config fixture and parsing assertions, and
document the new key in the config options table and sample configs.
This commit is contained in:
Victor 2026-08-05 11:29:25 -03:00
parent 864780da66
commit 702e7528d7
5 changed files with 8 additions and 4 deletions

View File

@ -2,7 +2,7 @@ Key,Value(s),Description,Required
additional-repositories,[ `multilib <https://wiki.archlinux.org/title/Official_repositories#multilib>`_!, `testing <https://wiki.archlinux.org/title/Official_repositories#Testing_repositories>`_ ],Enables one or more of the testing and multilib repositories before proceeding with installation,No
archinstall-language,`lang <https://github.com/archlinux/archinstall/blob/master/archinstall/locales/languages.json>`__,Sets the TUI language used *(make sure to use the ``lang`` value not the ``abbr``)*,No
audio_config,`pipewire <https://wiki.archlinux.org/title/PipeWire>`_!, `pulseaudio <https://wiki.archlinux.org/title/PulseAudio>`_,Audioserver to be installed,No
bootloader_config,"{ bootloader: `Systemd-boot <https://wiki.archlinux.org/title/Systemd-boot>`_!, `grub <https://wiki.archlinux.org/title/GRUB>`_!, `limine <https://wiki.archlinux.org/title/Limine>`_!, uki: ``true``/``false``!, removable: ``true``/``false`` }","Bootloader configuration. ``bootloader`` selects which bootloader to install *(grub/limine mandatory on BIOS)*. ``uki`` enables unified kernel images *(UEFI only!, systemd-boot/limine only)*. ``removable`` installs to default removable media path /EFI/BOOT/ instead of NVRAM *(UEFI only!, grub/limine only)*",Yes
bootloader_config,"{ bootloader: `Systemd-boot <https://wiki.archlinux.org/title/Systemd-boot>`_!, `grub <https://wiki.archlinux.org/title/GRUB>`_!, `limine <https://wiki.archlinux.org/title/Limine>`_!, uki: ``true``/``false``!, removable: ``true``/``false``!, os_prober: ``true``/``false`` }","Bootloader configuration. ``bootloader`` selects which bootloader to install *(grub/limine mandatory on BIOS)*. ``uki`` enables unified kernel images *(UEFI only!, systemd-boot/limine only)*. ``removable`` installs to default removable media path /EFI/BOOT/ instead of NVRAM *(UEFI only!, grub/limine only)*. ``os_prober`` installs os-prober so GRUB can detect other operating systems such as Windows *(grub only)*",Yes
debug,``true``!, ``false``,Enables debug output,No
disk_config,*Read more under* :ref:`disk config`,Contains the desired disk setup to be used during installation,No
disk_encryption,*Read more about under* :ref:`disk encryption`,Parameters for disk encryption applied on top of ``disk_config``,No

Can't render this file because it has a wrong number of fields in line 2.

View File

@ -69,7 +69,8 @@ The contents of :code:`https://domain.lan/config.json`:
"bootloader_config": {
"bootloader": "Systemd-boot",
"uki": false,
"removable": false
"removable": false,
"os_prober": false
},
"bootloader": "Systemd-boot",
"debug": false,

View File

@ -6,7 +6,8 @@
"bootloader_config": {
"bootloader": "Systemd-boot",
"uki": false,
"removable": false
"removable": false,
"os_prober": false
},
"debug": false,
"disk_config": {

View File

@ -24,7 +24,8 @@
"bootloader_config": {
"bootloader": "Systemd-boot",
"uki": false,
"removable": false
"removable": false,
"os_prober": true
},
"services": [
"service_1",

View File

@ -232,6 +232,7 @@ def test_config_file_parsing(
bootloader=Bootloader.Systemd,
uki=False,
removable=False,
os_prober=True,
),
hostname='archy',
kernels=['linux-zen'],