Bug 10647

Summary: iw package not installed in mininmal install => failure to set CRDA => not being able to connect to wlan
Product: Mageia Reporter: Christian Lohmaier <lohmaier+mageia>
Component: Release (media or process)Assignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: ennael1, sysadmin-bugs, thierry.vignaud, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: meta-task CVE:
Status comment:

Description Christian Lohmaier 2013-06-29 09:13:42 CEST
Description of problem:
Installation from dual-arch doesn't install the "iw" package despite it being available on the medium.

Since it is missing, the regulatory domain is not set, and thus it is impossible to connect to wireless networks on channels outside of the US regulatory domain.


Version-Release number of selected component (if applicable):
Mageia 3, and very likely also Cauldron


How reproducible:
always

Steps to Reproduce:
1. set router to use a channel outside of us-regulatory domain
2. install with dual-arch iso, 
3. on configuration screen try to setup your wlan
   â ESSID not listed, you have to add it manually
   â even after having it added manually, and after completing the configuration the network test fails. (side-note: the dialog doesn't offer to explicitly configure the CRDA domain)
4. ignore the failure and install
5. boot to the new system and see that wireless connection could not be established.
   â /etc/sysconfig/network contains the correct CRDA (based on the country selected in installer), but /etc/rc.d/init.d/network cannot set it, since /sbin/iw command is not installed.



Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2013-06-29 15:00:03 CEST
iw is required by libdrakx-net so it seems strange that is was not installed

can you provide your report.bug in /root/drakx ?

Keywords: (none) => NEEDINFO

Comment 2 Christian Lohmaier 2013-06-30 08:21:57 CEST
libdrak-net might require it, but that of course has no effect when that package is not in the list of packages that are installed.

And really a high-level configuration utility is the wrong place for the requires-statement. 

I can attach it if really needed, but as it contains serial numbers etc..., but the relevant part probably is

* compssUsersChoice selected: "Workstation|Configuration", "Workstation|Console Tools", "Workstation|Documentation"

(i.e. choose a rather minimal install, that doesn't inven install useful documentation, since the man utility is not even available (see other bug #10648 for that)
and then later on the configuration-tab configure network â wireless

* do_pkgs_during_install::install
* selecting packages wireless-tools
[...]

And then on the configuration page configure bootloader (reduce waiting time, change nothing else), configure X11, configure the network.

Putting the requires (or suggests, as suggests would be enough for installer) on wireless-tools instead/in addition should solve the problem. Alernatively the configuration utility should determine that it is not in US locale (country selection) and install it)

the package-list:
# You should always check the syntax with 'perl -cw auto_inst.cfg.pl'
# before testing.  To use it, boot with ``linux defcfg=floppy''
$o = {
       'default_packages' => [
			       'locales-en',
			       'libalsa-data',
			       'sharutils',
			       'mtools',
			       'mandi-ifw',
			       'p11-kit',
			       'dvd+rw-tools',
			       'acpi',
			       'wpa_supplicant',
			       'cdrkit',
			       'mkxauth',
			       'groff',
			       'sudo',
			       'nscd',
			       'basesystem',
			       'aria2',
			       'nss',
			       'screen',
			       'lftp',
			       'shorewall-ipv6',
			       'plymouth',
			       'ntfs-3g',
			       'crda',
			       'fonts-ttf-dejavu',
			       'locales-de',
			       'lsof',
			       'lib64zlib1',
			       'gnupg',
			       'x11-driver-video',
			       'mageia-gfxboot-theme',
			       'task-x11',
			       'vim-minimal',
			       'acpid',
			       'dhcp-client',
			       'ldetect',
			       'dosfstools',
			       'urpmi',
			       'netprofile',
			       'grub',
			       'pm-utils',
			       'wireless-tools',
			       'kernel-desktop-latest',
			       'aoss',
			       'radeon-firmware'
			     ]
     };

Keywords: NEEDINFO => (none)

Comment 3 Manuel Hiebel 2013-06-30 11:49:36 CEST
>libdrak-net might require it, but that of course has no effect when that package >is not in the list of packages that are installed.
well libdrak-net is required by drakxtools-curses which should be installed as you have "Workstation|Configuration"

CC: (none) => ennael1, thierry.vignaud, tmb

Comment 4 Christian Lohmaier 2013-06-30 16:23:18 CEST
Hmm. I'm not really familiar on how that selection works. I can confirm though that drakxtools-curses has not been installed by the installer, only later when I installed gdm.

now my interpretation of the group-stuff:
/run/media/cl/Mageia-3/x86_64/media/media_info/compssUsers.pl sets "CONFIG" flag for the Configuration group.

and /run/media/cl/Mageia-3/x86_64/media/media_info/rpmsrate contains 
CAT_CONFIG
  5 CAT_KDE !LIVE kgamma kcron kdepasswd kleopatra
  3 ipvsadm nut
  2 adjtimex xinput timeconfig samba-swat
  1 ipxutils

documentation at the top of http://ftp.nluug.nl/os/Linux/distr/mageia/distrib/cauldron/i586/media/media_info/rpmsrate-raw says that basically everything lower than 4 is ignored/not installed, and the cateory 5 is conditionalized for CAT_KDE. That file also has no other entries for CAT_CONFIG

So in fact that category doesn't do anything when not installing KDE?
Comment 5 Thierry Vignaud 2015-04-30 22:34:41 CEST
It's not listed in meta-task's rpmsrate-raw:

  5 TYPE"wireless" wireless-tools wpa_supplicant rfkill

Thomas, should we install it when there's wifi?

Summary: iw package not installed, resulting in failure to set CRDA and thus not being able to connect to wlan => iw package not installed in mininmal install => failure to set CRDA => not being able to connect to wlan
Source RPM: (none) => meta-task

Comment 6 Thomas Backlund 2015-04-30 22:38:00 CEST
Oh yes indeed, you cant do much wireless without it
Comment 7 Thierry Vignaud 2015-04-30 22:42:03 CEST
Just fixed in meta-task then

Status: NEW => RESOLVED
CC: (none) => sysadmin-bugs
Component: Installer => Release (media or process)
Resolution: (none) => FIXED

Comment 8 Thierry Vignaud 2015-04-30 23:20:36 CEST
Thomas, could you push meta-task?
Comment 9 Mageia Robot 2015-05-10 22:44:46 CEST
commit 9c5d20c705e029352b636886253e8560ed0640f8
Author: Thomas Backlund <tmb@...>
Date:   Sun May 10 23:42:46 2015 +0300

    last commit also fixes mga#15875 that got broken by mga#10647
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=9c5d20c705e029352b636886253e8560ed0640f8

 Bug links:
   Mageia
      https://bugs.mageia.org/15875
      https://bugs.mageia.org/10647