Description of problem: The documentation for pykickstart shows that wifi settings/parameters can be set, but those settings are not implemented by Anaconda. Currently Anaconda seems to be detecting and skipping all wireless interfaces as shown in the link below. https://github.com/rhinstaller/anaconda/blob/f7fa0246dd90e3b4c115a4b2c6e3549acd13660f/pyanaconda/modules/network/initialization.py#L87-L91 It would be great to be able to configure a wifi device when kickstarting an installation. Version-Release number of selected component (if applicable): fedora 33 network installer How reproducible: Try the following ks.cfg ```ks #version=DEVEL # Use text based install text # System language lang en_CA.UTF-8 # Keyboard layouts keyboard --xlayouts='jp' # System timezone timezone Asia/Tokyo timesource --ntp-disable # Network information network --hostname=localhost.localdomain network --activate --device=wlp2s0 --essid=****** --wpakey=****** # Disk Setup # ignoredisk --only-use=nvme0n1 ignoredisk --only-use=sda ## Partition clearing information clearpart --all --drives=sda ## Disk partitioning information ### Partitions part /boot --fstype="xfs" --ondisk=sda --size=1024 part btrfs.01 --fstype="btrfs" --ondisk=sda --size=227911 ### BTRFS Volumes btrfs none --label=fedora btrfs.01 btrfs / --subvol --name=root LABEL=fedora zerombr # System services services --disabled="chronyd" # Run the Setup Agent on first boot firstboot --enable %packages @^workstation-product-environment git golang %end %addon com_redhat_kdump --disable --reserve-mb='128' %end %anaconda pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty %end ``` Steps to Reproduce: 1. Use the network installer with the above kickstart file. 2. add `inst.ks=hd:LABEL=KSFLASH` to your boot options. Actual results: The install doesn't proceed and journalctl contains the message at the following link. https://github.com/rhinstaller/anaconda/blob/f7fa0246dd90e3b4c115a4b2c6e3549acd13660f/pyanaconda/modules/network/initialization.py#L87-L91 Expected results: Wifi devices get provisioned too.
Switching to Rawhide, as there was no change in the linked code + marking as RFE. https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/modules/network/initialization.py#L87-L91
Seems to be an issue of dracut: essid, wepkey, wpakey Dracut doesn’t support wireless networking, so these don’t do anything. https://anaconda-installer.readthedocs.io/en/latest/boot-options.html#removed-options
Mmh, thinking twice about it, that can't be right, because it's possible to configure WIFI manually in Anaconda.
The also this bug report for pykickstart: https://github.com/pykickstart/pykickstart/issues/338
It turns out Anaconda informs about not supporting WIFI. However it hides this information in the log files: https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/modules/network/initialization.py#L93 While support for WIFI would really be appreciated, can we at least stop installation and throws an error as suggested in [1]? [1] https://github.com/pykickstart/pykickstart/pull/450#issuecomment-1502089471
This RFE is definitely valid use case. However, I would like to know your use-case. Wi-Fi are not usually used in environments where kickstart is used, so I'm not convinced that this feature would be adopted broadly. The workaround for this could be a %pre section in kickstart file to setup the network.
Thanks for everyone looking into this. My particular usecase is for automating setting up of corporate laptops with Fedora Workstation. > The workaround for this could be a %pre section in kickstart file to setup the network. This is a nice workaround I will use this for now, if we need to close this ticket we can, but it would be nice for official support of this feature.
Thanks for the reply. We will think about that but as I explained above, it's pretty rare scenario for usual kickstart environment, so I'm closing this ticket now.