NFS boot - fsck.nfs in initscripts ?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

NFS boot - fsck.nfs in initscripts ?

Postby Sagittarius » Fri Mar 11, 2016 5:33 pm

When upgrading kernel on an NFS boot root fs (Dockstar|GoflexNet), a fsck.nfs is called with no /sbin/fsck.nfs file.

As in Debian, shouldn't there be an fsck.nfs dummy script that always returns success in initscripts ?

fsck.nfs
$this->bbcode_second_pass_code('', '#! /bin/sh
#
# fsck.nfs
#
# Dummy fsck.nfs file that always returns success. We
# need this for when the root file system is on NFS:
# there is no way to find out if root is NFS mounted
# and we really want to do a "fsck -a /".
#

while :
do
case "$1" in
-*) shift ;;
*) break ;;
esac
done

echo "$1: NFS file system."

exit 0
')
Dockstar / GoFlexNet booting on NFS / Odroid C1+ / Odroid C2
Sagittarius
 
Posts: 61
Joined: Mon Nov 14, 2011 9:21 pm
Location: France

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 7 guests