#1866: Pointless warning when running "ifdown" for a manually-configured 
interface
--------------------------------------------+-------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  [email protected]
     Type:  task                            |      Status:  new                 
         
 Priority:  normal                          |   Milestone:  6.3                 
         
Component:  Book                            |     Version:  SVN                 
         
 Severity:  normal                          |    Keywords:                      
         
--------------------------------------------+-------------------------------
 For the LiveCD needs, LFS network bootscripts have to be modified for
 compatibility with the "hibernate" script. The issue is:

  * The LiveCD has to run dhcpcd by default on all network interfaces,
 because it is not known which of possibly more than one network card is
 connected to a switch. Current syntax of network configuration files
 doesn't allow this, and the LiveCD has to bypass the existing
 infrastructure and run dhcpcd from udev rules in order to accomplish the
 goal.

  * Because of that, some interfaces may be up, but without valid
 configuration files (I refer to such interfaces as manually-configured
 below, because exactly the same situation arises when one runs the "ip"
 command manually).

  * The "hibernate" script wants to "ifdown" all interfaces, but doing so
 for interfaces without the configuration file results in a pointless (in
 this situation) warning. A similar warning appears when resuming, when the
 "hibernate" script runs "ifup". This warning has to be invisible in this
 case.

 Of course, the LiveCD can create an interface configuration file and run
 "ifup" instead of running dhcpcd directly, but the bug is still relevant
 for manually-configured interfaces: not everyone discovers net-setup, and
 some people configure static IP addresses manually by the "ip" command.

 Text of the warning:
 {{{
 /etc/sysconfig/network-devices/ifconfig.eth0 is not a network
 configuration file or directory.
 }}}

 So the bootscripts should provide some means (environment variable or
 ifup/ifdown command line switch to be used by the "hibernate" script) to
 suppress this pointless warning.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/1866>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to