NetBSD Problem Report #58176

From www@netbsd.org  Sat Apr 20 02:28:33 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0BD881A9238
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 20 Apr 2024 02:28:33 +0000 (UTC)
Message-Id: <20240420022831.DE1FB1A923A@mollari.NetBSD.org>
Date: Sat, 20 Apr 2024 02:28:31 +0000 (UTC)
From: rwhitlock22@gmail.com
Reply-To: rwhitlock22@gmail.com
To: gnats-bugs@NetBSD.org
Subject: sysinst doesn't escape spaces in /etc/fstab
X-Send-Pr-Version: www-1.0

>Number:         58176
>Category:       install
>Synopsis:       sysinst doesn't escape spaces in /etc/fstab
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 20 02:30:00 +0000 2024
>Originator:     Robert Whitlock
>Release:        NetBSD 10.0
>Organization:
>Environment:
NetBSD 10.0 amd64 GENERIC
>Description:
After booting into the NetBSD 10.0 installer, I dropped down into the shell to create some partitions with gpt(8), and I gave them labels with spaces in them, like "NetBSD 10.0". I installed NetBSD 10.0 onto one of the partitions and selected the "preconfigured wedges" option. When I booted up the installed system, I was greeted with a screenful of errors from fsck and mount about /etc/fstab and I was dropped into single user mode with a read-only root partition.

It turned out that the problem was that sysinst(8) didn't escape the spaces when it wrote

NAME=NetBSD 10.0 / ffs rw 1 1

and similarly for the other partitions, and as whitespace is a field delimiter, this confused programs reading that file.
>How-To-Repeat:
See above.
>Fix:
Make sysinst escape spaces in NAME values when writing /etc/fstab.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.