|Summary:||app-misc/livecd-tools: update autoconfig to enable headless installation with new network interface names|
|Product:||Gentoo Release Media||Reporter:||Alexey <alexeyk13>|
|Component:||LiveCD/DVD||Assignee:||Gentoo LiveCD Package Maintainers <livecd>|
|Severity:||major||CC:||bkohler, email, hu, releng|
|Package list:||Runtime testing required:||---|
|Attachments:||use /sys/class/net to determine available network devices|
Description Alexey 2013-05-23 06:35:16 UTC
Because udev starting from 197 changed naming of network adapters, headless ssh installation failed, because of no network is auto-configured. Nir sshd, nor passwd is started. was (before udev 197): eth0, eth1, ... now: enp1s0, enp2s0, enp?s? enp* should be added to auto-search list
Comment 1 William Hubbs 2013-05-28 14:44:18 UTC
What exactly fails? There shouldn't be a difference that causes a headless installation to fail. I'm not sure which auto search list you are talking about?
Comment 2 Alexey 2013-05-28 15:38:15 UTC
Look at line 504 /etc/init.d/autoconfig For each network device in list for headless installation dhcpcd is started. If there is no network device, matching this list, network will be down, sshd is not started and passwd will be random.
Comment 3 Kelvin 2013-06-17 13:27:59 UTC
My solution 1,nano -w /etc/conf.d/net (config_enp?s?="dhcp") add in /etc/conf.d/net 2,ln -s /etc/init.d/net.lo /etc/init.d/net.enp?s? rc-update add net.enp?s? default 3,install dhcpcd
Comment 4 Yun Zheng Hu 2013-06-18 09:03:59 UTC
Created attachment 351292 [details, diff] use /sys/class/net to determine available network devices I attached a patch so it uses /sys/class/net to determine which network devices there are instead of /proc/net/dev.
Comment 5 William Hubbs 2013-06-18 17:00:01 UTC
(In reply to Alexey from comment #2) > Look at line 504 /etc/init.d/autoconfig > > For each network device in list for headless installation dhcpcd is started. > If there is no network device, matching this list, network will be down, > sshd is not started and passwd will be random. Actually my plan is to start dhcpcd in standalone mode which means it will detect any non-configured network device on its own and try to get an address for it, so we may not need to look for specific devices by name.
Comment 6 Fernando (likewhoa) 2014-06-26 21:39:12 UTC
WilliamH we have to also look at livedvd media as that uses network manager for the desktop and currently it's being started by udev and when network manager is not present then dhcpcd is started, same goes if wicd was in present. Keep in mind NetworkManager is not in runlevel.
Comment 7 William Hubbs 2015-10-18 02:30:58 UTC
I spoke with jmbsvicetto about a patch I had im my local repo, and he thinks it is related to this bug. This patch is in commit bf37db7.