From nobody Mon Jan 30 15:08:46 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P5BR035vyz3bRNK for ; Mon, 30 Jan 2023 15:09:00 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P5BR00Xxgz3vx2 for ; Mon, 30 Jan 2023 15:09:00 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pf1-x436.google.com with SMTP id 203so6624071pfx.6 for ; Mon, 30 Jan 2023 07:09:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1dv3xdBxxZcb3q9bEXYCqfasTOh+GicsuEjoAM/xoqo=; b=cS/OalHpathujDbRLz9/CWfH1h5SFBJrOSLEye+YudjBbqJPKpVyRjoB3iSS/J0gV7 ql3qncy75lrx7ID+LpF7hyHXHj0qfY1n9O5PhuQCcWFyxes63MexzP75xa4wFhZMv7Tt Qq5g3JWWcBXftIcyVZoexA8Udvkhv9KAh10FM+yNzlzPV9RHvmjEwu7nBTInAqjY4olj j3sK3gNeDfVPE9klcw/NaNfRyvUgoewx6Q2a9np5wjWXhuHEJKV6zMDFDNgSroB0bfKf 92UFkTD6f35hU1lP89gFwr/P6DtaFM5Nw8R1KtaPUl9OdFpLQ2B6QDD3AhDLqMtEgXD2 SZYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1dv3xdBxxZcb3q9bEXYCqfasTOh+GicsuEjoAM/xoqo=; b=sBWEoEM9V8sQ0jyhwabRJ1jYcM14SHCPR2j8MBJc299998vpFLviUcfA9vhF304XFW 2MqRjI1hKqWhqDKH62LBVkXSwh3g8sk/+14+FvsiMjpETUca/neJbuivk7sx5WA1pgDn BJ2Q7lKEWkb0HKbsk9hFG5OTu1p39MGF3nNM2sPOWsmO9l/G1cMLebA+DI/AiWhk6b9P OvtZt0/t8tX5Su94mClJS/HymxQ7P4jiwB1vjSO5rn3Wv3hHZ/7p2vrqWj/WL66QU2yY rvi7aJV8NRJfo5il8odfwNcB7PrQmiA+1IAtRBZKJ53Fjax4LyEdcT5gR2EYg1b8U4YG 4TsA== X-Gm-Message-State: AFqh2krhe9B38cXuZtmszUokcdt28LhhaLf2Oirn8ZYfKV96e4QKy7DI uk3SDFr4bBVrzDKbjX2+r58pz3VaB0C1XILMHg== X-Google-Smtp-Source: AMrXdXv3YjCpu5G5sAVIccJljfWMcwRPIF7gTcmfB4oNEd+9zXqYzeGFNg+cys5S1lDgC8aEz9pcIKgqph6dGMryH6A= X-Received: by 2002:aa7:820f:0:b0:58d:a713:d1dd with SMTP id k15-20020aa7820f000000b0058da713d1ddmr6386993pfi.59.1675091338811; Mon, 30 Jan 2023 07:08:58 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Rick Macklem Date: Mon, 30 Jan 2023 07:08:46 -0800 Message-ID: Subject: Re: sbin/mount: failed to mount NFS root To: qroxana Cc: "freebsd-current@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4P5BR00Xxgz3vx2 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N I think this was fixed by a commit yesterday. rick On Mon, Jan 30, 2023 at 6:51 AM qroxana 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 > 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 >