Bug 13691 - netinstall, no mirror listed in stage1
Summary: netinstall, no mirror listed in stage1
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-06 18:05 CEST by Manuel Hiebel
Modified: 2014-07-13 08:27 CEST (History)
5 users (show)

See Also:
Source RPM: dracut
CVE:
Status comment:


Attachments

Description Manuel Hiebel 2014-07-06 18:05:47 CEST
It looks like the boot.iso don't have a list of 'default' mirror available, to get the stage2/rpms.

It works if we write them manually

Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2014-07-06 18:06:58 CEST

Summary: netinstall, no mirror listed in stage2 => netinstall, no mirror listed in stage1

Comment 1 Thierry Vignaud 2014-07-06 20:39:21 CEST
we get those from the web site...

CC: (none) => thierry.vignaud
Assignee: thierry.vignaud => bugsquad

Comment 2 Manuel Hiebel 2014-07-06 22:28:14 CEST
Yes but it works using the same vm with the 4.1 iso and http://mirrors.mageia.org/api/basic.5.x86_64.list is accessible

In the log I see 

HTTP: connecting to mirrors (...)
getaddressinfo: no address associated with hostname
HTTP: unable to get mirrorlist from ... api/5/basic.x86_64.list

while on 4/ I see is-at: 215 ...

So that's why I think something is broken in stage1
Comment 3 Thierry Vignaud 2014-07-07 09:55:51 CEST
Humm.
In the old days, we used gethostby*() with dietlibc.
Then we switched from gethostby*() to getaddrinfo():

http://gitweb.mageia.org/software/drakx/log/mdk-stage1/dns.c

Then we switched from dietlibc to glibc when using dracut (which makes use gethostby*() again).
Just after mga4, I made us use the same code with glibc that we used with dietlibc:
http://gitweb.mageia.org/software/drakx/commit/mdk-stage1/dns.c?id=6d8df12830883d6537e6844a6deae8adb8bfe37c

This seems to be the root cause of this issue.
Maybe glibc's resolver needs some file we lack?
But why would it work with gethostby*() but not with getaddrinfo()

CC: (none) => mageia, mageia

Comment 4 Pascal Terjan 2014-07-12 15:03:00 CEST
We don't seem to have libnss_dns.

Adding inst_libdir_file "libnss_dns.so.*" at a random place in /usr/lib/dracut/modules.d/90mgainstaller/module-setup.sh seems to have fixed it.

CC: (none) => pterjan

Thierry Vignaud 2014-07-12 19:52:14 CEST

Component: Release (media or process) => Installer
Source RPM: (none) => dracut

Comment 5 Thierry Vignaud 2014-07-12 19:56:19 CEST
Thanks!
Upload of dracut in progress, I'll rebuild d-i*images with it
Comment 6 Manuel Hiebel 2014-07-13 08:27:41 CEST
Fixed, thanks

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


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