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> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | bkohler, email, hu, releng |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | use /sys/class/net to determine available network devices |
Description
Alexey
2013-05-23 06:35:16 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? 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. 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 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.
(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. 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. 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. |