disable/enable WiFi on devices with read-only rootfs, the wifi network name will auto plus 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd |
Fix Released
|
Unknown
|
|||
ubuntu-settings (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
On devices with read-only rootfs, e.g. mobile phones, nic device number (wlan<N>) may increase every time disabled and re-enabled. To be more precisely, this happens only on devices when disabling a NIC removes the corresponding driver.
"/lib/udev/
So, when wlan0 is probed for the first time on a device with read-only rootfs, udev creates "/run/udev/
This is a cloned bug from Debian bug 780705 (https:/
Related branches
- Martin Pitt: Disapprove
-
Diff: 486 lines (+409/-7)7 files modified.pc/Avoid-duplicated-udev-match-rules.patch/debian/extra/rule_generator.functions (+116/-0)
.pc/Avoid-duplicated-udev-match-rules.patch/debian/extra/write_net_rules (+141/-0)
.pc/applied-patches (+1/-0)
debian/extra/rule_generator.functions (+1/-1)
debian/extra/write_net_rules (+16/-6)
debian/patches/Avoid-duplicated-udev-match-rules.patch (+133/-0)
debian/patches/series (+1/-0)
Changed in systemd: | |
status: | Unknown → Fix Released |
The attached patch Avoid-duplicate d-udev- match-rules. patch was also submitted to Debian upstream, but as Debian is switching to systemd and systemd has come with a feature to consolidate device names in a more generic way, this patch is probably not going further. However, since some Ubuntu Phones have not yet fully switch to systemd, a quick patch for this might be valuable.
This patch tries to reuse device names that is already written in tmp rules and has exactly the same match expr with the one that is going to be written out.