| Summary: | drakwizards dhcpd and dns only provide eth0 interface | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | William Murphy <warrendiogenese> |
| Component: | RPM Packages | Assignee: | Mageia tools maintainers <mageiatools> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | derekjenn, doc-bugs, mageia, mageia, marja11, thierry.vignaud |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | MGA7TOO | ||
| Source RPM: | drakwizard-4.0-1.mga4.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: |
Dhcp.pm patch
IFCFG.pm patch |
||
|
Description
William Murphy
2013-12-10 07:38:21 CET
Thierry Vignaud
2013-12-10 11:30:34 CET
CC:
(none) =>
mageia, thierry.vignaud
Thierry Vignaud
2013-12-10 11:30:53 CET
CC:
(none) =>
derekjenn thx for filing the report, William :-) CC:
(none) =>
doc-bugs, marja11 @ Colin Assigning to you because it isn't assigned to anyone and because tv cc'ed you just after this bug was filed (instead of assigning to himself), which makes me suspect you could solve it :-P Feel free to re-assign, though :-D Assignee:
bugsquad =>
mageia This bug affect also drakwizard ftp.
The concerned line is line 38 in the above cited script:
foreach (split('\n', $ifconfig)) {
my ($temp) = /(^eth[0-9]*:?[0-9]*)/;
papoteur
2020-12-12 15:08:04 CET
Assignee:
mageia =>
mageiatools Hello, For the DHCP wizard, the reference to eth0 are in the /usr/share/perl5/vendor_perl/MDK/Wizard directory)in files Dhcp.pm and in IFCFG.pm. As default wired interface is changing from a machine to another, we can probably take the default interface from the route command. Created attachment 12071 [details]
Dhcp.pm patch
Created attachment 12072 [details]
IFCFG.pm patch
can you clone the git repo and provide a git patch ? ( easier to read all at once :-) ) CC:
(none) =>
mageia I'd originally cc-ed Colin as he was the one that made us switch from ethX to bios names. I think drakwizard should rely on the same code as drakx-net, by reusing detect_devices::is_lan_interface(). See eg: http://gitweb.mageia.org/software/drakx-net/tree/lib/network/connection/ethernet.pm#n16 See "drakdoc detect_devices" for doc and http://gitweb.mageia.org/software/drakx/tree/perl-install/detect_devices.pm#n783 for the boring details It looks like I introduced the blacklist approach 16 years ago, too bad drakwizard maintainers never went the same way… adding colin as CC: I think a project could be to clean our tools. I agree with you that we should reuse what exists and not reinvent the wheel. Hello, I never made a git clone and Perl is a language i don't known... I just try to understand what the function is doing ;-) To correct the tool, there is also a change to make to the Wizcommon.pm file. In fact in Mageia 7 there is a test about the existence of the mountpoint /sys/fs/cgroup/systemd . But in Mageia 8/Cauldron, this mountpoint doesn't exist anymore, probably due to the switch from cgroup v1 to cgroup v2, forcing the wizard to try to launch a sysV service ( which doesn't exists (at least for dhcpd)) ! https://www.mageialinux-online.org/forum/topic-28180-2+assistant-dhcp.php CC:
(none) =>
joe_c_moi
Nicolas Nicolas
2020-12-23 11:05:14 CET
CC:
joe_c_moi =>
(none)
papoteur
2021-04-28 15:23:29 CEST
CC:
yves.brungard_mageia =>
(none) |