Bug 1927325 - [RFE] Anaconda does not support kickstart with wifi settings.
Summary: [RFE] Anaconda does not support kickstart with wifi settings.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-10 14:23 UTC by Scott Mattan
Modified: 2023-07-11 13:19 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-11 13:19:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Scott Mattan 2021-02-10 14:23:03 UTC
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.

Comment 1 Vladimír Slávik 2021-02-18 19:13:46 UTC
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

Comment 2 Woi 2023-04-08 15:30:15 UTC
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

Comment 3 Woi 2023-04-08 15:33:40 UTC
Mmh, thinking twice about it, that can't be right, because it's possible to configure WIFI manually in Anaconda.

Comment 4 Woi 2023-04-08 15:41:24 UTC
The also this bug report for pykickstart:
https://github.com/pykickstart/pykickstart/issues/338

Comment 5 Woi 2023-04-10 17:49:10 UTC
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

Comment 6 Jiri Konecny 2023-05-02 13:46:56 UTC
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.

Comment 7 Scott Mattan 2023-05-12 03:25:35 UTC
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.

Comment 8 Jiri Konecny 2023-07-11 13:19:51 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.