--- a/etc/init.d/root 2013-01-27 17:07:30.000000000 +0200 +++ a/etc/init.d/root 2013-03-16 23:48:25.000000000 +0200 @@ -21,9 +21,20 @@ rm -f /fastboot /forcefsck else ebegin "Remounting root filesystem read/write" + local nfs_root="$(awk '!/^[[:space:]]*#/ && ($2 == "/") \ + && ($3 == "nfs" || $3 =="nfs4" ) \ + {printf("%s %s\n", $1, $2)}' \ + /etc/fstab)" case "$RC_UNAME" in Linux) - mount -n -o remount,rw / + if [[ -n "${nfs_root}" ]]; then + einfo "Found NFS rootfs(${nfs_root})." + einfo "Trying to remount NFS / read-write ..." + mount -n ${nfs_root} -o remount,rw + else + mount -n -o remount,rw / + fi + ;; *) mount -u -o rw / @@ -37,7 +48,7 @@ ;; esac - ebegin "Remounting filesystems" + ebegin "Remounting other (!=\"/\") filesystems" local mountpoint for mountpoint in $(fstabinfo); do case "${mountpoint}" in