Skip to content
  • Trent Piepho's avatar
    system: Fix for NFS booting with interface config via DHCP · 71c75a5e
    Trent Piepho authored
    
    
    Configuring the network interface with DHCP via
    /etc/network/interfaces generally does not work when NFS booting.  The
    DHCP configuration will initially bring the interface down and system
    then hangs at that point as the root filesystem is no longer
    accessable.
    
    This adds a script to be run via a pre-up line in
    /etc/network/interfaces.  It checks for a NFS root filesystem and if
    the interface to be configured is used for access to the NFS server.
    If this is the case, then it returns a failure code so that ifup will
    not configure the interface.  This works for DHCP and another config
    methods (static, bootp, etc.).  This system does detect if the
    interface to be configured isn't the one used for NFS and doesn't skip
    it when that is the case.
    
    NFS filesystems that aren't the root fs aren't considered.
    
    Fixes bug #4790.
    
    Signed-off-by: default avatarTrent Piepho <tpiepho@kymetacorp.com>
    Reviewed-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
    Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
    71c75a5e