Re: sbin/mount: failed to mount NFS root
- Reply: qroxana : "Re: sbin/mount: failed to mount NFS root"
- In reply to: qroxana : "sbin/mount: failed to mount NFS root"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Jan 2023 15:08:46 UTC
I think this was fixed by a commit yesterday.
rick
On Mon, Jan 30, 2023 at 6:51 AM qroxana <qroxana@protonmail.com> wrote:
>
> /etc/rc failed to run "mount -uw /" when booting from NFS root,
> this happened after the commit 906c312bbf7493ccbcce883936d67e5c66a9c3c2,
> the previous commit works fine.
>
> + mount -uw /
> af 1 sotype 1 not supported
> + echo 'Mounting root filesystem rw failed, startup aborted'
> Mounting root filesystem rw failed, startup aborted
> ERROR: ABORTING BOOT (sending SIGTERM to parent)!
> 2023-01-30T10:09:05.116920+00:00 - init 1 - - /bin/sh on /etc/rc terminated abnormally, going to single user mode
> Enter full pathname of shell or RETURN for /bin/sh:
>
>
> commit 906c312bbf7493ccbcce883936d67e5c66a9c3c2
> Author: Kirk McKusick <mckusick@FreeBSD.org>
> Date: Sun Jan 15 10:20:48 2023 -0800
>
> Document the mntopts(3) functions.
>
> The mntopts(3) functions support operations associated with a mount
> point. The main purpose of this commit is to document the mntopts(3)
> functions that now appear in 18 utilities in the base system. See
> mntopts(3) for the documentation details.
>
> The getmntopts() function appeared in 4.4BSD. The build_iovec(),
> build_iovec_argf(), free_iovec(), checkpath(), and rmslashes()
> functions were added with nmount(8) in FreeBSD 5.0. The getmntpoint()
> and chkdoreload() functions are being added in this commit.
>
> These functions should be in a library but for historic reasons are
> in a file in the sources for the mount(8) program. Thus, to access
> them the following lines need to be added to the Makefile of the
> program wanting to use them:
>
> SRCS+= getmntopts.c
> MOUNT= ${SRCTOP}/sbin/mount
> CFLAGS+= -I${MOUNT}
> .PATH: ${MOUNT}
>
> Once these changes have been MFC'ed to 13 they may be made into
> a library.
>
> Reviewed by: kib, gbe
> MFC after: 2 weeks
> Sponsored by: The FreeBSD Foundation
> Differential Revision: https://reviews.freebsd.org/D37907
>