Re: 70-persistent-net.rules not created in section 7.13 of LFS 6.6 Book

2010-04-11 Thread jumbophut
On Fri, Apr 9, 2010 at 8:57 PM, jumbophut wrote: After running the code in section 7.13, viz: for NIC in /sys/class/net/* ; do     INTERFACE=${NIC##*/} udevadm test --action=add $NIC done I cannot find the /etc/udev/rules.d/70-persistent-net.rules file that is supposed to have been

70-persistent-net.rules not created in section 7.13 of LFS 6.6 Book

2010-04-08 Thread jumbophut
After running the code in section 7.13, viz: for NIC in /sys/class/net/* ; do INTERFACE=${NIC##*/} udevadm test --action=add $NIC done I cannot find the /etc/udev/rules.d/70-persistent-net.rules file that is supposed to have been generated. I have spent some time trying to track down the

Re: 70-persistent-net.rules not created in section 7.13 of LFS 6.6 Book

2010-04-08 Thread Andrew Benton
On 08/04/10 10:17, jumbophut wrote: After running the code in section 7.13, viz: for NIC in /sys/class/net/* ; do INTERFACE=${NIC##*/} udevadm test --action=add $NIC done I cannot find the /etc/udev/rules.d/70-persistent-net.rules file that is supposed to have been generated. I have

Re: 70-persistent-net.rules not created in section 7.13 of LFS 6.6 Book

2010-04-08 Thread Trent Shea
On April 8, 2010 03:17:38 am jumbophut wrote: After running the code in section 7.13, viz: for NIC in /sys/class/net/* ; do INTERFACE=${NIC##*/} udevadm test --action=add $NIC done I cannot find the /etc/udev/rules.d/70-persistent-net.rules file that is supposed to have been

Re: 70-persistent-net.rules not created

2010-01-17 Thread jmscott
On Tue, Jan 12, 2010 at 09:07:07PM -0600, jmsc...@setex.ipcallback.com wrote: On Tue, Jan 12, 2010 at 12:57:25PM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: regarding the following code blurb in LFS 6.5, chapter 7.13.1 for NIC in /sys/class/net/* ; do

Re: 70-persistent-net.rules not created

2010-01-13 Thread Simon Geard
On Tue, 2010-01-12 at 21:55 -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: by the way, one of the conditions for setting the value of INTERFACE is that udev_device_get_subsystem(dev), net) == 0 That seems like it is looking for /dev. If it errors, the expression

Re: 70-persistent-net.rules not created

2010-01-12 Thread jmscott
On Mon, Jan 11, 2010 at 01:08:35AM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: On Sun, Jan 10, 2010 at 10:37:13PM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: the standard output to /lib/udev/write_net_rules is caught and filtered by udevadm, so

Re: 70-persistent-net.rules not created

2010-01-12 Thread linux fan
On 1/12/10, jmsc...@setex.ipcallback.com jmsc...@setex.ipcallback.com wrote: so, in the name of progress, i like to solict advice on what to do next, LFS-6.4 and earlier had: for NIC in /sys/class/net/* ; do INTERFACE=${NIC##*/} udevadm test --action=add --subsystem=net $NIC done I wonder

Re: 70-persistent-net.rules not created

2010-01-12 Thread jmscott
On Tue, Jan 12, 2010 at 10:02:02AM -0500, linux fan wrote: On 1/12/10, jmsc...@setex.ipcallback.com jmsc...@setex.ipcallback.com wrote: so, in the name of progress, i like to solict advice on what to do next, LFS-6.4 and earlier had: for NIC in /sys/class/net/* ; do

Re: 70-persistent-net.rules not created

2010-01-12 Thread linux fan
On 1/12/10, jmsc...@setex.ipcallback.com jmsc...@setex.ipcallback.com wrote: not clear that adding --subsystem would force INTERFACE to be exported to Hmm, Output of ls -d /sys/class/net/* /sys/class/net/eth0 /sys/class/net/lo Output of ls -dl /sys/class/net/* lrwxrwxrwx 1 root root 0

Re: 70-persistent-net.rules not created

2010-01-12 Thread linux fan
On 1/12/10, linux fan wrote: Just experimenting ... It almost seems like export/import is fouled up. The following block should print: bar .. foo= echo 'echo $foo' fubar chmod 755 fubar foo=bar ./fubar echo .$foo. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ:

Re: 70-persistent-net.rules not created

2010-01-12 Thread Bruce Dubbs
jmsc...@setex.ipcallback.com wrote: regarding the following code blurb in LFS 6.5, chapter 7.13.1 for NIC in /sys/class/net/* ; do INTERFACE=${NIC##*/} udevadm test --action=add $NIC done i've come to the conclusion that something is missing. Yes, there is something

Re: 70-persistent-net.rules not created

2010-01-12 Thread jmscott
On Tue, Jan 12, 2010 at 12:57:25PM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: regarding the following code blurb in LFS 6.5, chapter 7.13.1 for NIC in /sys/class/net/* ; do INTERFACE=${NIC##*/} udevadm test --action=add $NIC done i've come

Re: 70-persistent-net.rules not created

2010-01-12 Thread jmscott
On Tue, Jan 12, 2010 at 10:02:02AM -0500, linux fan wrote: On 1/12/10, jmsc...@setex.ipcallback.com jmsc...@setex.ipcallback.com wrote: so, in the name of progress, i like to solict advice on what to do next, LFS-6.4 and earlier had: for NIC in /sys/class/net/* ; do

Re: 70-persistent-net.rules not created

2010-01-12 Thread Bruce Dubbs
jmsc...@setex.ipcallback.com wrote: by the way, one of the conditions for setting the value of INTERFACE is that udev_device_get_subsystem(dev), net) == 0 That seems like it is looking for /dev. If it errors, the expression is false. I wonder if dev above is a shorthand for

Re: 70-persistent-net.rules not created

2010-01-11 Thread jmscott
On Mon, Jan 11, 2010 at 01:08:35AM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: On Sun, Jan 10, 2010 at 10:37:13PM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: the standard output to /lib/udev/write_net_rules is caught and filtered by udevadm, so

Re: 70-persistent-net.rules not created

2010-01-10 Thread jmscott
On Sat, Jan 09, 2010 at 12:48:42PM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: i see the error util_run_program: 'write_net_rules' util_run_program: '/lib/udev/write_net_rules' (stderr) 'missing $INTERFACE' util_run_program: 'write_net_rules' returned

Re: 70-persistent-net.rules not created

2010-01-10 Thread Bruce Dubbs
jmsc...@setex.ipcallback.com wrote: from examining the udevadm source, it appears the environment variable list is rebuilt for the execve call to /lib/udev/write_net_rules. i do see the INTERFACE env variable being passed to udevadm in main(), as expected, but not being included in the envp

Re: 70-persistent-net.rules not created

2010-01-10 Thread jmscott
On Sun, Jan 10, 2010 at 08:38:09PM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: from examining the udevadm source, it appears the environment variable list is rebuilt for the execve call to /lib/udev/write_net_rules. i do see the INTERFACE env variable being passed to

Re: 70-persistent-net.rules not created

2010-01-10 Thread Bruce Dubbs
jmsc...@setex.ipcallback.com wrote: the standard output to /lib/udev/write_net_rules is caught and filtered by udevadm, so examining the env list to execve() seemed a bit more direct. Where is standard output caught? I don't see it. After options, udevadm just calls udevadm-test(argc,

Re: 70-persistent-net.rules not created

2010-01-10 Thread jmscott
On Sun, Jan 10, 2010 at 10:37:13PM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: the standard output to /lib/udev/write_net_rules is caught and filtered by udevadm, so examining the env list to execve() seemed a bit more direct. Where is standard output caught? I

Re: 70-persistent-net.rules not created

2010-01-10 Thread Bruce Dubbs
jmsc...@setex.ipcallback.com wrote: On Sun, Jan 10, 2010 at 10:37:13PM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: the standard output to /lib/udev/write_net_rules is caught and filtered by udevadm, so examining the env list to execve() seemed a bit more direct. Where is

Re: 70-persistent-net.rules not created

2010-01-09 Thread jmscott
On Fri, Jan 08, 2010 at 11:36:19PM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: Nope, appears that /etc/udev/rules.d/70-persistent-net.rules is missing. I see many but no obvious errors in the output of of the 'for' loop in the blurb in paragraph 7.13.1: for NIC

Re: 70-persistent-net.rules not created

2010-01-09 Thread Bruce Dubbs
jmsc...@setex.ipcallback.com wrote: If you do INTERFACE=eth0 udevadm test --action=add eth0 Do you get anything? now i'm seeing the error unable to open device '/syseth0' My fault. It should be INTERFACE=/sys/class/net/eth0 udevadm test --action=add /sys/class/net/eth0 (one

Re: 70-persistent-net.rules not created

2010-01-09 Thread jmscott
On Sat, Jan 09, 2010 at 12:04:41PM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: If you do INTERFACE=eth0 udevadm test --action=add eth0 Do you get anything? now i'm seeing the error unable to open device '/syseth0' My fault. It should be

Re: 70-persistent-net.rules not created

2010-01-09 Thread Bruce Dubbs
jmsc...@setex.ipcallback.com wrote: i see the error util_run_program: 'write_net_rules' util_run_program: '/lib/udev/write_net_rules' (stderr) 'missing $INTERFACE' util_run_program: 'write_net_rules' returned with exitcode 1 amongst the voluminous output. i tried exporting

Re: 70-persistent-net.rules not created

2010-01-09 Thread jmscott
On Sat, Jan 09, 2010 at 12:48:42PM -0600, Bruce Dubbs wrote: jmsc...@setex.ipcallback.com wrote: i see the error util_run_program: 'write_net_rules' util_run_program: '/lib/udev/write_net_rules' (stderr) 'missing $INTERFACE' util_run_program: 'write_net_rules' returned

Re: 70-persistent-net.rules not created

2010-01-08 Thread jmscott
-persistent-net.rules The problem is that /etc/udev/rules.d/70-persistent-net.rules is not created. Did I miss running a command in the previous chapters ... perhaps /lib/udev/write_net_rules? Here is the link to the web page with the code in question http

Re: 70-persistent-net.rules not created

2010-01-08 Thread Bruce Dubbs
jmsc...@setex.ipcallback.com wrote: Nope, appears that /etc/udev/rules.d/70-persistent-net.rules is missing. I see many but no obvious errors in the output of of the 'for' loop in the blurb in paragraph 7.13.1: for NIC in /sys/class/net/* ; do INTERFACE=${NIC##*/}

Re: 70-persistent-net.rules not created

2010-01-08 Thread Justin P. Mattock
file. cat /etc/udev/rules.d/70-persistent-net.rules The problem is that /etc/udev/rules.d/70-persistent-net.rules is not created. Did I miss running a command in the previous chapters ... perhaps /lib/udev/write_net_rules? Here is the link to the web page with the code in question

70-persistent-net.rules not created

2010-01-07 Thread jmscott
/* ; do INTERFACE=${NIC##*/} udevadm test --action=add $NIC done followed by the blurb to inspect the 70-persistent-net.rules file. cat /etc/udev/rules.d/70-persistent-net.rules The problem is that /etc/udev/rules.d/70-persistent-net.rules is not created. Did I miss

Re: 70-persistent-net.rules not created

2010-01-07 Thread Justin P. Mattock
/rules.d/70-persistent-net.rules is not created. Did I miss running a command in the previous chapters ... perhaps /lib/udev/write_net_rules? Here is the link to the web page with the code in question http://www.linuxfromscratch.org/lfs/view/stable/chapter07/network.html Also, the host os

Re: 70-persistent-net.rules not created

2010-01-07 Thread jmscott
/etc/udev/rules.d/70-persistent-net.rules The problem is that /etc/udev/rules.d/70-persistent-net.rules is not created. Did I miss running a command in the previous chapters ... perhaps /lib/udev/write_net_rules? Here is the link to the web page with the code in question http

Re: 70-persistent-net.rules not created

2010-01-07 Thread Bruce Dubbs
-persistent-net.rules is not created. Did I miss running a command in the previous chapters ... perhaps /lib/udev/write_net_rules? Here is the link to the web page with the code in question http://www.linuxfromscratch.org/lfs/view/stable/chapter07/network.html Also, the host os