Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439912 - app-misc/livecd-tools-2.0.2: DHCP Broadcasting for IP not working
Summary: app-misc/livecd-tools-2.0.2: DHCP Broadcasting for IP not working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: LiveCD/DVD (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-27 18:07 UTC by Yun Zheng Hu
Modified: 2020-11-06 00:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yun Zheng Hu 2012-10-27 18:07:48 UTC
The /etc/init.d/autoconfig script says it's going to broadcast for IP on device but doesn't do it because it checks for the following .pid file:

if [ -f /var/run/dhcpcd-${nics}.pid ]
   .. do dhcpd ..
fi

This file obviously doesn't exist during boot, I think it was meant to check if the file does not exist?

see line 516:
http://git.overlays.gentoo.org/gitweb/?p=proj/livecd-tools.git;a=blob;f=init.d/autoconfig;h=7511366bbcedf9cc03a67f03b6f5db23bb4e78ab;hb=HEAD
Comment 1 Larry the Git Cow gentoo-dev 2020-11-06 00:29:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/livecd-tools.git/commit/?id=58948705bcf5136401621a8855e9f0c15049e1dd

commit 58948705bcf5136401621a8855e9f0c15049e1dd
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2020-11-06 00:27:40 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-11-06 00:29:07 +0000

    autoconfig: Fix logic error
    
    When the system starts, the PID file will not exist because we haven't
    started dhcpcd. Also update /var/run -> /run while we're here.
    
    Closes: https://bugs.gentoo.org/198083
    Closes: https://bugs.gentoo.org/439912
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 init.d/autoconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 2 Matt Turner gentoo-dev 2020-11-06 00:30:14 UTC
Thanks for the bug report, and sorry it took literally 8 years to add one character.