[Bug 4962] New: udhcpd deconfigures the network interface underneath a NFS rootfs

bugzilla-daemon at amethyst.openembedded.net bugzilla-daemon at amethyst.openembedded.net
Tue Jan 6 14:46:38 CET 2009


http://bugs.openembedded.net/show_bug.cgi?id=4962

           Summary: udhcpd deconfigures the network interface underneath a
                    NFS rootfs
    Classification: Unclassified
           Product: Openembedded
           Version: Angstrom 2008.x
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: org.openembedded.dev
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: likewise at gmx.net


The proposed fix is to not deconfigure interfaces when the root filesystem
lives on NFS.

Should be robust, i.e. failsafe in the case of misdetection.


# return 0 if root is mounted on a network filesystem
root_is_nfs() {
        grep -qe '^/dev/root.*\(nfs\|smbfs\|ncp\|coda\) .*' /proc/mounts
}

case "$1" in
        deconfig)
                if [ ! root_is_nfs ]; then
                        /sbin/ifconfig $interface 0.0.0.0
                fi
                ;;

-- 
Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Openembedded-issues mailing list