NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/41689: fsck_root: Boot fails with root-on-nfs



>Number:         41689
>Category:       bin
>Synopsis:       fsck_root: Boot fails with root-on-nfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 09 09:40:00 +0000 2009
>Originator:     Christoph Egger
>Release:        -current
>Organization:
>Environment:
>Description:

/etc/rc.d/fsck_root assumes / to be always on disk.

It runs fsck / unconditionally.
If root is on nfs, fsck fails with error code 1.
fsck_root then prints:

    "Unknown error 1; help!"


>How-To-Repeat:

Boot NetBSD-current with root-on-nfs.

>Fix:

A workaround to make the machine boot:

--- fsck_root.orig      2009-07-09 09:36:39.000000000 +0000
+++ fsck_root   2009-06-15 09:50:34.000000000 +0000
@@ -44,6 +44,9 @@ fsck_root_start()
        0)      # OK
                return
                ;;
+       1)      # OK, / is on nfs
+               return
+               ;;
        2)      # Needs re-run, still fs errors
                echo "file system still has errors; re-run fsck manually!"
                ;;



Home | Main Index | Thread Index | Old Index