Re: [lfs-support] DHCPCD not starting when booting up
On Feb 20, 2014, at 11:29 AM, Oshadha Gunawardena wrote: root:/etc# ps -e|grep log 1949 ?00:00:00 rsyslogd I hope you aren't using cross-lfs with lfs bootscripts. We install rsyslog with CLFS. Sincerely, William Harrington -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
On 02/21/14 09:35, William Harrington wrote: On Feb 20, 2014, at 11:29 AM, Oshadha Gunawardena wrote: root:/etc# ps -e|grep log 1949 ?00:00:00 rsyslogd I hope you aren't using cross-lfs with lfs bootscripts. We install rsyslog with CLFS. Sincerely, William Harrington I spent almost a week and a half getting rsyslog installed and running on my 7.4 system. My google-fu must've been inoperative at the time, because I didn't see anything about CLFS! Merell Matlock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
On Fri, Feb 21, 2014 at 8:47 PM, Merell L. Matlock, Jr. mlmatl...@gmail.com wrote: On 02/21/14 09:35, William Harrington wrote: On Feb 20, 2014, at 11:29 AM, Oshadha Gunawardena wrote: root:/etc# ps -e|grep log 1949 ?00:00:00 rsyslogd I hope you aren't using cross-lfs with lfs bootscripts. We install rsyslog with CLFS. Sincerely, William Harrington I spent almost a week and a half getting rsyslog installed and running on my 7.4 system. My google-fu must've been inoperative at the time, because I didn't see anything about CLFS! @Bruce root:/# ls -l /etc/rc.d/rc3.d/ total 0 lrwxrwxrwx 1 root root 18 Feb 17 10:36 S10sysklogd - ../init.d/sysklogd lrwxrwxrwx 1 root root 17 Feb 17 10:36 S20network - ../init.d/network @William I only followed the LFS 7.4 book at the time I was building my system nothing more. I don't know what's wrong with my build, it's strange anyway. @Merell cross-lfs.org, it's down at the moment. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
@Bruce, I did exactly as you have mentioned and it seems that only the scripts are in */etc/rc.d/rcS.d/* will get executed root:/# ls -l /etc/rc.d/rcS.d/ total 0 lrwxrwxrwx 1 root root 21 Feb 17 10:36 S00mountvirtfs - ../init.d/mountvirtfs lrwxrwxrwx 1 root root 17 Feb 17 10:36 S05modules - ../init.d/modules lrwxrwxrwx 1 root root 18 Feb 17 10:36 S08localnet - ../init.d/localnet lrwxrwxrwx 1 root root 14 Feb 17 10:36 S10udev - ../init.d/udev lrwxrwxrwx 1 root root 14 Feb 17 10:36 S20swap - ../init.d/swap lrwxrwxrwx 1 root root 17 Feb 17 10:36 S30checkfs - ../init.d/checkfs lrwxrwxrwx 1 root root 17 Feb 17 10:36 S40mountfs - ../init.d/mountfs lrwxrwxrwx 1 root root 17 Feb 17 10:36 S45cleanfs - ../init.d/cleanfs lrwxrwxrwx 1 root root 20 Feb 17 10:36 S50udev_retry - ../init.d/udev_retry lrwxrwxrwx 1 root root 17 Feb 17 10:36 S70console - ../init.d/console lrwxrwxrwx 1 root root 16 Feb 17 10:36 S90sysctl - ../init.d/sysctl On Thu, Feb 20, 2014 at 9:23 AM, Bruce Dubbs bruce.du...@gmail.com wrote: Oshadha Gunawardena wrote: @Pierre, I checked the /etc/rc.d/init.d/network script it seems OK. And the run levels are 3, 4, 5 (as per the script). Also I checked in /etc/rc.d/rc.3 /etc/rc.d/rc.4 /etc/rc.d/rc.5 And there are symlinks to the network script. It seems like the network script it self isn't get executed. Is there a way that I can ensure the script is being executed? Like altering it maybe Don't top post. Ecit /etc/sysconfig/rc.site and uncomment: #IPROMPT=yes # Whether to display the interactive boot promp #itime=3# The ammount of time (in seconds) to display the prompt When you boot, it asks if you want to do an interactive prompt. Say yes. You can then step through the boot scripts one at a time. Edit /etc/rc.d/init.d/network and add 'echo $interface' right below the line interface=${file##*/ifconfig.} Then lets see what you get. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Oshadha Gunawardena wrote: @Bruce, I did exactly as you have mentioned and it seems that only the scripts are in */etc/rc.d/rcS.d/* will get executed root:/# ls -l /etc/rc.d/rcS.d/ total 0 lrwxrwxrwx 1 root root 21 Feb 17 10:36 S00mountvirtfs - ../init.d/mountvirtfs lrwxrwxrwx 1 root root 17 Feb 17 10:36 S05modules - ../init.d/modules lrwxrwxrwx 1 root root 18 Feb 17 10:36 S08localnet - ../init.d/localnet lrwxrwxrwx 1 root root 14 Feb 17 10:36 S10udev - ../init.d/udev lrwxrwxrwx 1 root root 14 Feb 17 10:36 S20swap - ../init.d/swap lrwxrwxrwx 1 root root 17 Feb 17 10:36 S30checkfs - ../init.d/checkfs lrwxrwxrwx 1 root root 17 Feb 17 10:36 S40mountfs - ../init.d/mountfs lrwxrwxrwx 1 root root 17 Feb 17 10:36 S45cleanfs - ../init.d/cleanfs lrwxrwxrwx 1 root root 20 Feb 17 10:36 S50udev_retry - ../init.d/udev_retry lrwxrwxrwx 1 root root 17 Feb 17 10:36 S70console - ../init.d/console lrwxrwxrwx 1 root root 16 Feb 17 10:36 S90sysctl - ../init.d/sysctl Does /etc/inittab have: id:3:initdefault: The following is being run: si::sysinit:/etc/rc.d/init.d/rc S but l3:3:wait:/etc/rc.d/init.d/rc 3 apparently is not. What are the contents of /etc/rc.d/rc3.d/ ? -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Yes id does included id:3:initdefault: root:/# cat /etc/inittab # Begin /etc/inittab id:3:initdefault: si::sysinit:/etc/rc.d/init.d/rc S l0:0:wait:/etc/rc.d/init.d/rc 0 l1:S1:wait:/etc/rc.d/init.d/rc 1 l2:2:wait:/etc/rc.d/init.d/rc 2 l3:3:wait:/etc/rc.d/init.d/rc 3 l4:4:wait:/etc/rc.d/init.d/rc 4 l5:5:wait:/etc/rc.d/init.d/rc 5 l6:6:wait:/etc/rc.d/init.d/rc 6 ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now su:S016:once:/sbin/sulogin 1:2345:respawn:/sbin/agetty 2:2345:respawn:/sbin/agetty 3:2345:respawn:/sbin/agetty 4:2345:respawn:/sbin/agetty 5:2345:respawn:/sbin/agetty 6:2345:respawn:/sbin/agetty --noclear tty1 9600 tty2 9600 tty3 9600 tty4 9600 tty5 9600 tty6 9600 # End /etc/inittab And also the in /etc/rc.d/rc3.d/ has the network script root:/# ls -l /etc/rc.d/rc3.d/ total 0 lrwxrwxrwx 1 root root 18 Feb 17 10:36 S10sysklogd - ../init.d/sysklogd lrwxrwxrwx 1 root root 17 Feb 17 10:36 S20network - ../init.d/network On Thu, Feb 20, 2014 at 10:20 PM, Bruce Dubbs bruce.du...@gmail.com wrote: Oshadha Gunawardena wrote: @Bruce, I did exactly as you have mentioned and it seems that only the scripts are in */etc/rc.d/rcS.d/* will get executed root:/# ls -l /etc/rc.d/rcS.d/ total 0 lrwxrwxrwx 1 root root 21 Feb 17 10:36 S00mountvirtfs - ../init.d/mountvirtfs lrwxrwxrwx 1 root root 17 Feb 17 10:36 S05modules - ../init.d/modules lrwxrwxrwx 1 root root 18 Feb 17 10:36 S08localnet - ../init.d/localnet lrwxrwxrwx 1 root root 14 Feb 17 10:36 S10udev - ../init.d/udev lrwxrwxrwx 1 root root 14 Feb 17 10:36 S20swap - ../init.d/swap lrwxrwxrwx 1 root root 17 Feb 17 10:36 S30checkfs - ../init.d/checkfs lrwxrwxrwx 1 root root 17 Feb 17 10:36 S40mountfs - ../init.d/mountfs lrwxrwxrwx 1 root root 17 Feb 17 10:36 S45cleanfs - ../init.d/cleanfs lrwxrwxrwx 1 root root 20 Feb 17 10:36 S50udev_retry - ../init.d/udev_retry lrwxrwxrwx 1 root root 17 Feb 17 10:36 S70console - ../init.d/console lrwxrwxrwx 1 root root 16 Feb 17 10:36 S90sysctl - ../init.d/sysctl Does /etc/inittab have: id:3:initdefault: The following is being run: si::sysinit:/etc/rc.d/init.d/rc S but l3:3:wait:/etc/rc.d/init.d/rc 3 apparently is not. What are the contents of /etc/rc.d/rc3.d/ ? -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Oshadha Gunawardena wrote: Yes id does included id:3:initdefault: root:/# cat /etc/inittab # Begin /etc/inittab id:3:initdefault: si::sysinit:/etc/rc.d/init.d/rc S l0:0:wait:/etc/rc.d/init.d/rc 0 l1:S1:wait:/etc/rc.d/init.d/rc 1 l2:2:wait:/etc/rc.d/init.d/rc 2 l3:3:wait:/etc/rc.d/init.d/rc 3 l4:4:wait:/etc/rc.d/init.d/rc 4 l5:5:wait:/etc/rc.d/init.d/rc 5 l6:6:wait:/etc/rc.d/init.d/rc 6 ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now su:S016:once:/sbin/sulogin 1:2345:respawn:/sbin/agetty 2:2345:respawn:/sbin/agetty 3:2345:respawn:/sbin/agetty 4:2345:respawn:/sbin/agetty 5:2345:respawn:/sbin/agetty 6:2345:respawn:/sbin/agetty --noclear tty1 9600 tty2 9600 tty3 9600 tty4 9600 tty5 9600 tty6 9600 # End /etc/inittab And also the in /etc/rc.d/rc3.d/ has the network script root:/# ls -l /etc/rc.d/rc3.d/ total 0 lrwxrwxrwx 1 root root 18 Feb 17 10:36 S10sysklogd - ../init.d/sysklogd lrwxrwxrwx 1 root root 17 Feb 17 10:36 S20network - ../init.d/network Please stop top posting or you will get ignored. Also, trim the posts to what is needed. Are you saying that 'ps -e|grep log' does not give syslogd and klogd? Lets also review the files in /etc/sysconfig/ and the contents of /etc/sysconfig/ifconfig* and the links in /sys/class/net/ -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Please stop top posting or you will get ignored. Also, trim the posts to what is needed. Are you saying that 'ps -e|grep log' does not give syslogd and klogd? Lets also review the files in /etc/sysconfig/ and the contents of /etc/sysconfig/ifconfig* and the links in /sys/class/net/ -- Bruce Sorry I'm having bit of a trouble with Gmail. As for the details can I run ps -e|grep log from chroot environment? I did it and a single process is running -rsyslogd root:/etc# ps -e|grep log 1949 ?00:00:00 rsyslogd root:~# ls -l /etc/sysconfig/ total 32 -rw-r--r-- 1 root root 186 Feb 17 10:56 clock -rw-r--r-- 1 root root 111 Feb 17 11:13 console -rw-r--r-- 1 root root 1072 Feb 17 10:36 createfiles -rw-r--r-- 1 root root 77 Feb 18 20:06 ifconfig.eth0 -rw-r--r-- 1 root root 559 Feb 17 10:36 modules -rw-r--r-- 1 root root 25 Feb 17 10:55 network -rw-r--r-- 1 root root 2394 Feb 20 20:37 rc.site -rw-r--r-- 1 root root 679 Feb 17 10:36 udev_retry root:~# cat /etc/sysconfig/ifconfig.eth0 ONBOOT=yes IFACE=eth0 SERVICE=dhcpcd DHCP_START=-b -q DHCP_STOP=-k root:~# ls -l /sys/class/net/ total 0 lrwxrwxrwx 1 root root 0 Feb 20 20:44 eth0 - ../../devices/pci:00/:00:19.0/net/eth0 lrwxrwxrwx 1 root root 0 Feb 20 20:43 lo - ../../devices/virtual/net/lo Many thanks, Oshadha. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Le 20/02/2014 18:04, Oshadha Gunawardena a écrit : root:/# cat /etc/inittab # Begin /etc/inittab id:3:initdefault: si::sysinit:/etc/rc.d/init.d/rc S l0:0:wait:/etc/rc.d/init.d/rc 0 l1:S1:wait:/etc/rc.d/init.d/rc 1 l2:2:wait:/etc/rc.d/init.d/rc 2 l3:3:wait:/etc/rc.d/init.d/rc 3 l4:4:wait:/etc/rc.d/init.d/rc 4 l5:5:wait:/etc/rc.d/init.d/rc 5 l6:6:wait:/etc/rc.d/init.d/rc 6 ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now su:S016:once:/sbin/sulogin 1:2345:respawn:/sbin/agetty 2:2345:respawn:/sbin/agetty 3:2345:respawn:/sbin/agetty 4:2345:respawn:/sbin/agetty 5:2345:respawn:/sbin/agetty 6:2345:respawn:/sbin/agetty --noclear tty1 9600 tty2 9600 tty3 9600 tty4 9600 tty5 9600 tty6 9600 # End /etc/inittab It may happen that the mailer has broken lines, but the end of the above file is weird. It should be: 1:2345:respawn:/sbin/agetty --noclear tty1 9600 2:2345:respawn:/sbin/agetty tty2 9600 3:2345:respawn:/sbin/agetty tty3 9600 4:2345:respawn:/sbin/agetty tty4 9600 5:2345:respawn:/sbin/agetty tty5 9600 6:2345:respawn:/sbin/agetty tty6 9600 Do not know exactly how it would interact with the boot process. Pierre -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Oshadha Gunawardena wrote: root:/etc# ps -e|grep log 1949 ?00:00:00 rsyslogd That's not a part of LFS. What deviations from the book have you made? You should have both syslogd and klogd. root:~# ls -l /etc/sysconfig/ total 32 -rw-r--r-- 1 root root 186 Feb 17 10:56 clock -rw-r--r-- 1 root root 111 Feb 17 11:13 console -rw-r--r-- 1 root root 1072 Feb 17 10:36 createfiles -rw-r--r-- 1 root root 77 Feb 18 20:06 ifconfig.eth0 -rw-r--r-- 1 root root 559 Feb 17 10:36 modules -rw-r--r-- 1 root root 25 Feb 17 10:55 network -rw-r--r-- 1 root root 2394 Feb 20 20:37 rc.site -rw-r--r-- 1 root root 679 Feb 17 10:36 udev_retry Looks OK. root:~# cat /etc/sysconfig/ifconfig.eth0 ONBOOT=yes IFACE=eth0 SERVICE=dhcpcd DHCP_START=-b -q DHCP_STOP=-k Looks OK. root:~# ls -l /sys/class/net/ total 0 lrwxrwxrwx 1 root root 0 Feb 20 20:44 eth0 lrwxrwxrwx 1 root root 0 Feb 20 20:43 lo Looks OK. What is the output from 'ls /etc/rc.d/rc3.d'? -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Le 19/02/2014 04:38, Oshadha Gunawardena a écrit : @Bruce It's strange I checked the address and it's correct. Furthermore all the other files are seems to be in place. But then why the dhcpcd isn't starting automatically? I'm thinking of writing a start-up script to solve this issue. Sorry forgot to tell: Yesterday, I built dhcpcd and installed the scripts (on a virtual machine). Everything worked. I know that it works for me is not very helpful, but it shows that the scripts and the current build instructions produce a working installation in some cases. Do you have changed the runlevel with respect to what is in the book? I think network is not started in single runlevel, and maybe in others. Regards Pierre -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
@Pierre, I checked the /etc/rc.d/init.d/network script it seems OK. And the run levels are 3, 4, 5 (as per the script). Also I checked in /etc/rc.d/rc.3 /etc/rc.d/rc.4 /etc/rc.d/rc.5 And there are symlinks to the network script. It seems like the network script it self isn't get executed. Is there a way that I can ensure the script is being executed? Like altering it maybe On Wed, Feb 19, 2014 at 2:34 PM, Pierre Labastie pierre.labas...@neuf.frwrote: Le 19/02/2014 04:38, Oshadha Gunawardena a écrit : @Bruce It's strange I checked the address and it's correct. Furthermore all the other files are seems to be in place. But then why the dhcpcd isn't starting automatically? I'm thinking of writing a start-up script to solve this issue. Sorry forgot to tell: Yesterday, I built dhcpcd and installed the scripts (on a virtual machine). Everything worked. I know that it works for me is not very helpful, but it shows that the scripts and the current build instructions produce a working installation in some cases. Do you have changed the runlevel with respect to what is in the book? I think network is not started in single runlevel, and maybe in others. Regards Pierre -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Oshadha Gunawardena wrote: @Pierre, I checked the /etc/rc.d/init.d/network script it seems OK. And the run levels are 3, 4, 5 (as per the script). Also I checked in /etc/rc.d/rc.3 /etc/rc.d/rc.4 /etc/rc.d/rc.5 And there are symlinks to the network script. It seems like the network script it self isn't get executed. Is there a way that I can ensure the script is being executed? Like altering it maybe Don't top post. Ecit /etc/sysconfig/rc.site and uncomment: #IPROMPT=yes # Whether to display the interactive boot promp #itime=3# The ammount of time (in seconds) to display the prompt When you boot, it asks if you want to do an interactive prompt. Say yes. You can then step through the boot scripts one at a time. Edit /etc/rc.d/init.d/network and add 'echo $interface' right below the line interface=${file##*/ifconfig.} Then lets see what you get. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] DHCPCD not starting when booting up
Hi again all, I have completed my LFS build. And I wanted to install dhcpcd. So as in the BLFS I have followed every step and it seems everything went well *make install-service-dhcpcd* install -d -m 755 /lib/services install -m 754 blfs/services/dhcpcd /lib/services *cat /etc/sysconfig/ifconfig.eth0 * ONBOOT=yes IFACE=eth0 SERVICE=dhcpcd DHCP_START=-b -q DHCP_STOP=-k Once I boot in to the system it does not starting up automatically. I always has to run the dhcpcd to get it up. So I'm wondering what maybe the issue. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : Hi again all, I have completed my LFS build. And I wanted to install dhcpcd. So as in the BLFS I have followed every step and it seems everything went well *make install-service-dhcpcd* install -d -m 755 /lib/services install -m 754 blfs/services/dhcpcd /lib/services *cat /etc/sysconfig/ifconfig.eth0 * ONBOOT=yes IFACE=eth0 SERVICE=dhcpcd DHCP_START=-b -q DHCP_STOP=-k Once I boot in to the system it does not starting up automatically. I always has to run the dhcpcd to get it up. So I'm wondering what maybe the issue. Just guessing here. Do you have any other file beginning with ifconfig in /etc/sysconfig? If there is one, does it have ONBOOT=no? Now coming to dhcpcd. Does it start when running: --- ifup eth0 --- instead of dhcpcd? Regards Pierre -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Em 18-02-2014 12:49, Pierre Labastie escreveu: Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : Hi again all, I have completed my LFS build. And I wanted to install dhcpcd. So as in the BLFS I have followed every step and it seems everything went well *make install-service-dhcpcd* install -d -m 755 /lib/services install -m 754 blfs/services/dhcpcd /lib/services *cat /etc/sysconfig/ifconfig.eth0 * ONBOOT=yes IFACE=eth0 SERVICE=dhcpcd DHCP_START=-b -q DHCP_STOP=-k Once I boot in to the system it does not starting up automatically. I always has to run the dhcpcd to get it up. So I'm wondering what maybe the issue. Just guessing here. Do you have any other file beginning with ifconfig in /etc/sysconfig? If there is one, does it have ONBOOT=no? Now coming to dhcpcd. Does it start when running: --- ifup eth0 --- instead of dhcpcd? Good point. My previous LFS-7.4, had the interface named enp2s1: /etc/sysconfig/ifconfig.enp2s1 My new LFS-7.5-rc1: eno1636 /etc/sysconfig/ifconfig.eno1636 1: lo: LOOPBACK,UP,LOWER_UP mtu 65536 qdisc noqueue state UNKNOWN group default 2: eno1636: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000 3: gre0: NOARP mtu 1476 qdisc noop state DOWN group default link/gre 0.0.0.0 brd 0.0.0.0 4: gretap0: BROADCAST,MULTICAST mtu 1476 qdisc noop state DOWN group default qlen 1000 5: sit0 ... It was named as in the book: /etc/sysconfig/ifconfig.eth0 It always takes me a while until I remember where to look for the right name: ls /etc/udev/rules.d/ 55-lfs.rules 81-cdrom.rules 83-cdrom-symlinks.rules 99-fuse.rules Never get /etc/udev/rules.d/70-persistent-net.rules installed. Discovered the name with: ls /sys/class/net/ eno1636 gre0 gretap0 lo sit0 The device, if necessary, with: ls -l /sys/class/net/ total 0 lrwxrwxrwx 1 root root 0 Fev 18 08:50 eno1636 - ../../devices/pci:00/:00:11.0/:02:01.0/net/eno1636 lrwxrwxrwx 1 root root 0 Fev 18 08:50 gre0 - ../../devices/virtual/net/gre0 lrwxrwxrwx 1 root root 0 Fev 18 08:50 gretap0 - ../../devices/virtual/net/gretap0 lrwxrwxrwx 1 root root 0 Fev 18 08:50 lo - ../../devices/virtual/net/lo lrwxrwxrwx 1 root root 0 Fev 18 08:50 sit0 - ../../devices/virtual/net/sit0 -- []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
I double checked there's no other file starting with the name ifconfig. And yes it does starts with --- ifup eth0 --- On Tue, Feb 18, 2014 at 10:00 PM, Fernando de Oliveira fam...@yahoo.com.brwrote: Em 18-02-2014 12:49, Pierre Labastie escreveu: Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : Hi again all, I have completed my LFS build. And I wanted to install dhcpcd. So as in the BLFS I have followed every step and it seems everything went well *make install-service-dhcpcd* install -d -m 755 /lib/services install -m 754 blfs/services/dhcpcd /lib/services *cat /etc/sysconfig/ifconfig.eth0 * ONBOOT=yes IFACE=eth0 SERVICE=dhcpcd DHCP_START=-b -q DHCP_STOP=-k Once I boot in to the system it does not starting up automatically. I always has to run the dhcpcd to get it up. So I'm wondering what maybe the issue. Just guessing here. Do you have any other file beginning with ifconfig in /etc/sysconfig? If there is one, does it have ONBOOT=no? Now coming to dhcpcd. Does it start when running: --- ifup eth0 --- instead of dhcpcd? Good point. My previous LFS-7.4, had the interface named enp2s1: /etc/sysconfig/ifconfig.enp2s1 My new LFS-7.5-rc1: eno1636 /etc/sysconfig/ifconfig.eno1636 1: lo: LOOPBACK,UP,LOWER_UP mtu 65536 qdisc noqueue state UNKNOWN group default 2: eno1636: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000 3: gre0: NOARP mtu 1476 qdisc noop state DOWN group default link/gre 0.0.0.0 brd 0.0.0.0 4: gretap0: BROADCAST,MULTICAST mtu 1476 qdisc noop state DOWN group default qlen 1000 5: sit0 ... It was named as in the book: /etc/sysconfig/ifconfig.eth0 It always takes me a while until I remember where to look for the right name: ls /etc/udev/rules.d/ 55-lfs.rules 81-cdrom.rules 83-cdrom-symlinks.rules 99-fuse.rules Never get /etc/udev/rules.d/70-persistent-net.rules installed. Discovered the name with: ls /sys/class/net/ eno1636 gre0 gretap0 lo sit0 The device, if necessary, with: ls -l /sys/class/net/ total 0 lrwxrwxrwx 1 root root 0 Fev 18 08:50 eno1636 - ../../devices/pci:00/:00:11.0/:02:01.0/net/eno1636 lrwxrwxrwx 1 root root 0 Fev 18 08:50 gre0 - ../../devices/virtual/net/gre0 lrwxrwxrwx 1 root root 0 Fev 18 08:50 gretap0 - ../../devices/virtual/net/gretap0 lrwxrwxrwx 1 root root 0 Fev 18 08:50 lo - ../../devices/virtual/net/lo lrwxrwxrwx 1 root root 0 Fev 18 08:50 sit0 - ../../devices/virtual/net/sit0 -- []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Fernando de Oliveira wrote: Em 18-02-2014 12:49, Pierre Labastie escreveu: Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : Hi again all, I have completed my LFS build. And I wanted to install dhcpcd. So as in the BLFS I have followed every step and it seems everything went well *make install-service-dhcpcd* install -d -m 755 /lib/services install -m 754 blfs/services/dhcpcd /lib/services *cat /etc/sysconfig/ifconfig.eth0 * ONBOOT=yes IFACE=eth0 SERVICE=dhcpcd DHCP_START=-b -q DHCP_STOP=-k Once I boot in to the system it does not starting up automatically. I always has to run the dhcpcd to get it up. So I'm wondering what maybe the issue. Just guessing here. Do you have any other file beginning with ifconfig in /etc/sysconfig? If there is one, does it have ONBOOT=no? Now coming to dhcpcd. Does it start when running: --- ifup eth0 --- instead of dhcpcd? Good point. My previous LFS-7.4, had the interface named enp2s1: /etc/sysconfig/ifconfig.enp2s1 My new LFS-7.5-rc1: eno1636 /etc/sysconfig/ifconfig.eno1636 You need to change IFACE=eno1636 Or create a rule like: $ cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # net device e1000e SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==00:25:64:38:ec:dd, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==eth*, NAME=eth0 Note 1: Change the address as appropriate. You may also need to change KERNEL to en*. Note 2: The extension on the ifconfig file is irrelevant for the scripts. It only needs to be relevant to you. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Em 18-02-2014 13:55, Bruce Dubbs escreveu: Fernando de Oliveira wrote: Em 18-02-2014 12:49, Pierre Labastie escreveu: Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : Hi again all, I have completed my LFS build. And I wanted to install dhcpcd. So as in the BLFS I have followed every step and it seems everything went well *make install-service-dhcpcd* install -d -m 755 /lib/services install -m 754 blfs/services/dhcpcd /lib/services *cat /etc/sysconfig/ifconfig.eth0 * ONBOOT=yes IFACE=eth0 SERVICE=dhcpcd DHCP_START=-b -q DHCP_STOP=-k Once I boot in to the system it does not starting up automatically. I always has to run the dhcpcd to get it up. So I'm wondering what maybe the issue. Just guessing here. Do you have any other file beginning with ifconfig in /etc/sysconfig? If there is one, does it have ONBOOT=no? Now coming to dhcpcd. Does it start when running: --- ifup eth0 --- instead of dhcpcd? Good point. My previous LFS-7.4, had the interface named enp2s1: /etc/sysconfig/ifconfig.enp2s1 My new LFS-7.5-rc1: eno1636 /etc/sysconfig/ifconfig.eno1636 You need to change IFACE=eno1636 Thanks. I did it yesterday. I wrote all that trying to help Oshadha, He replied that there is no other file starting with ifconfig and probably it shouldn't, even mor sure, after reading what you wrote further below. He needs to search another place: ls /sys/class/net/ Or create a rule like: $ cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # net device e1000e SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==00:25:64:38:ec:dd, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==eth*, NAME=eth0 Note 1: Change the address as appropriate. You may also need to change KERNEL to en*. Thanks. Note 2: The extension on the ifconfig file is irrelevant for the scripts. It only needs to be relevant to you. I always forget this part. Thanks. -- []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
@Bruce, When I checked there was already a rule, but I'm not sure if the address and other constants are correct or not # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # net device e1000e SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==38:60:77:26:50:e3, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==en*, NAME=eth0 @Fernando root:/# ls /sys/class/net/ eth0 lo On Tue, Feb 18, 2014 at 10:51 PM, Fernando de Oliveira fam...@yahoo.com.brwrote: Em 18-02-2014 13:55, Bruce Dubbs escreveu: Fernando de Oliveira wrote: Em 18-02-2014 12:49, Pierre Labastie escreveu: Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : Hi again all, I have completed my LFS build. And I wanted to install dhcpcd. So as in the BLFS I have followed every step and it seems everything went well *make install-service-dhcpcd* install -d -m 755 /lib/services install -m 754 blfs/services/dhcpcd /lib/services *cat /etc/sysconfig/ifconfig.eth0 * ONBOOT=yes IFACE=eth0 SERVICE=dhcpcd DHCP_START=-b -q DHCP_STOP=-k Once I boot in to the system it does not starting up automatically. I always has to run the dhcpcd to get it up. So I'm wondering what maybe the issue. Just guessing here. Do you have any other file beginning with ifconfig in /etc/sysconfig? If there is one, does it have ONBOOT=no? Now coming to dhcpcd. Does it start when running: --- ifup eth0 --- instead of dhcpcd? Good point. My previous LFS-7.4, had the interface named enp2s1: /etc/sysconfig/ifconfig.enp2s1 My new LFS-7.5-rc1: eno1636 /etc/sysconfig/ifconfig.eno1636 You need to change IFACE=eno1636 Thanks. I did it yesterday. I wrote all that trying to help Oshadha, He replied that there is no other file starting with ifconfig and probably it shouldn't, even mor sure, after reading what you wrote further below. He needs to search another place: ls /sys/class/net/ Or create a rule like: $ cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # net device e1000e SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==00:25:64:38:ec:dd, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==eth*, NAME=eth0 Note 1: Change the address as appropriate. You may also need to change KERNEL to en*. Thanks. Note 2: The extension on the ifconfig file is irrelevant for the scripts. It only needs to be relevant to you. I always forget this part. Thanks. -- []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Oshadha Gunawardena wrote: @Bruce, When I checked there was already a rule, but I'm not sure if the address and other constants are correct or not You can check the address with `ip link show` or `ifconfig -a`. # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # net device e1000e SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==38:60:77:26:50:e3, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==en*, NAME=eth0 @Fernando root:/# ls /sys/class/net/ eth0 lo Looks like it's working. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
@Bruce It's strange I checked the address and it's correct. Furthermore all the other files are seems to be in place. But then why the dhcpcd isn't starting automatically? I'm thinking of writing a start-up script to solve this issue. Thanks, Oshadha On Tue, Feb 18, 2014 at 11:53 PM, Bruce Dubbs bruce.du...@gmail.com wrote: Oshadha Gunawardena wrote: @Bruce, When I checked there was already a rule, but I'm not sure if the address and other constants are correct or not You can check the address with `ip link show` or `ifconfig -a`. # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # net device e1000e SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==38:60:77:26:50:e3, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==en*, NAME=eth0 @Fernando root:/# ls /sys/class/net/ eth0 lo Looks like it's working. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Oshadha Gunawardena wrote: @Bruce It's strange I checked the address and it's correct. Furthermore all the other files are seems to be in place. But then why the dhcpcd isn't starting automatically? I'm thinking of writing a start-up script to solve this issue. They are not terribly long or complex scripts. Put in a few echo statements to debug. network calls ifup. ifup should call dhcpcd. Also, I think I told you the wrong thing before. Now that eth0 is being recognized, the config file needs to be ifconfig.eth0. The network script should probably be changed to: start) # Start all network interfaces for file in /etc/sysconfig/ifconfig.* do interface=${file##*/ifconfig.} # Skip if $file is * (because nothing was found) if [ ${interface} = * ]; then continue; fi . /etc/sysconfig/ifconfig.$interface /sbin/ifup ${IFACE} done ;; But that's for after 7.5 is released. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page