Bug 11504 - dhcp-client missing when performing a minimal install (no suggest)
Summary: dhcp-client missing when performing a minimal install (no suggest)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-21 17:14 CEST by Georges Eckenschwiller
Modified: 2014-08-20 16:06 CEST (History)
2 users (show)

See Also:
Source RPM: drakx-net
CVE:
Status comment:


Attachments
report.bug (138.96 KB, application/octet-stream)
2013-11-24 15:11 CET, Georges Eckenschwiller
Details

Description Georges Eckenschwiller 2013-10-21 17:14:39 CEST
Description of problem:

I make a minimal installation.
The installation is made with a CD created with boot-nonfree.iso.
The local mirror is on the hard disk.
The installation is made normally.
The network is configured in the stage "summary":

ethernet
The IP address is given by a dhcp server (Freebox).
The network test fails.


In the restart, the network does not work.
By configuring with MCC, I notice that dhcp-client is not installed,
while during the installation, I specified well that the address is given by a DHCP server

Reproducible: 

Steps to Reproduce:
Comment 1 Georges Eckenschwiller 2013-11-15 16:21:19 CET
The problem remains present with a minimal installation with the DVD of beta1.

I think that a control of dhcp-client presence should take place during the configuration of the network.
Comment 2 Manuel Hiebel 2013-11-15 18:09:41 CET
does'nt it install the package when requested ?

Version: 3 => Cauldron

Comment 3 Georges Eckenschwiller 2013-11-15 18:34:13 CET
A manual installation works well.

When I choose to install an office such as Xfce, dhcp-customer is automatically installed. 
It is only with the minimal installation that there is problem.
Comment 4 Thierry Vignaud 2013-11-20 22:28:45 CET
Please attach your /root/drakx/report.bug.xz

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud
Summary: dhcp-client missing => dhcp-client missing when performing a minimal install
Source RPM: (none) => drakx-net

Comment 5 Georges Eckenschwiller 2013-11-24 15:11:05 CET
Created attachment 4521 [details]
report.bug

New test, this morning, with boot-nonfree.iso of 21-11-2013.
Defect always present.

Appendix: report.bug
Comment 6 Manuel Hiebel 2013-11-24 15:26:36 CET
looks like the no suggest option was selected, but if it's directly selected (rpmsrate ?) and suggest by something else (initscripts), should it not be keep ?

* selecting dhcp-client-4.2.5P1-2.mga4.i586
* requiring dhcp-common[== 3:4.2.5P1-2.mga4] for dhcp-client-4.2.5P1-2.mga4.i586
* chosen dhcp-common-4.2.5P1-2.mga4.i586 for dhcp-common[== 3:4.2.5P1-2.mga4]
* selecting dhcp-common-4.2.5P1-2.mga4.i586

* requested dhcp-client suggested by initscripts-9.41-19.mga4.i586
* install settings: no_suggests=1, excludedocs=, really_minimal_install=
* unselecting all packages...
* unselecting suggested package dhcp-common
* unselecting suggested package dhcp-client

Summary: dhcp-client missing when performing a minimal install => dhcp-client missing when performing a minimal install (no suggest)

Comment 7 Georges Eckenschwiller 2013-11-24 15:33:29 CET
It is exact.
For a little bit old computers, I try not to install the useless packages.
Comment 8 Georges Eckenschwiller 2013-11-24 15:35:14 CET
I think that the control could be made during the configuration of the network
Comment 9 Thierry Vignaud 2013-12-06 11:30:20 CET
You didn't try to configure the network during stage2 so it didn't picked a dhcp client as this was uneeded.

On the other hand, report.bug.xz shows that stage1 has done a dhcp request but stage2 didn't remember all settings.

A little checking shows this is b/c of install::install2::read_stage1_net_conf() which reads only the first file returned by glob_('/tmp/ifcfg-*')...
... which heppens to be /tmp/ifcfg-leases in your logs as well as in my tests
thus eg: /tmp/ifcfg-enp0s3 is ignored

/tmp/ifcfg & /tmp/ifcfg-leases are two new directories created by dracut which is now used for stage1 (bad Colin!)

I've make stage2 ignore non regular /tmp/ifcfg-* files.

I could have made it read all /tmp/ifcfg-files but stage1 will leave only one file.

Keywords: NEEDINFO => (none)
Status: NEW => RESOLVED
CC: (none) => mageia
Resolution: (none) => FIXED
Assignee: bugsquad => thierry.vignaud

Comment 10 Colin Guthrie 2013-12-06 11:47:29 CET
I guess that's what we get for using a global /tmp namespace rather than our own /tmp/mga/ (or perhaps better a /run/mga/) folder to keep all our stuff in.

One for mga5 perhaps! Thanks for the investigation and fix Thierry!!
Comment 11 Thierry Vignaud 2013-12-06 11:49:17 CET
Why not? But for mga5 indeed.
Comment 12 Georges Eckenschwiller 2014-08-20 09:24:58 CEST
Hello,
Further to the current problems with stage2 of cauldron, I used the DVD i586 alpha2.

I have again a failure in the network connection.

I was able to verify that dhcp-client is not installed, in spite of the fact of having configured the network by using dhcp.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 13 Thierry Vignaud 2014-08-20 16:06:41 CEST
This is a different issue as this one was fixed (ie same result, but different cause).
So please open a new bug report and attach your /root/drakx/report.bug.xz

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


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