NetBSD Problem Report #54747

From www@netbsd.org  Sat Dec  7 19:07:14 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 5F92D7A1A2
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  7 Dec 2019 19:07:14 +0000 (UTC)
Message-Id: <20191207190713.8DD547A1B4@mollari.NetBSD.org>
Date: Sat,  7 Dec 2019 19:07:13 +0000 (UTC)
From: jacob.ritorto@gmail.com
Reply-To: jacob.ritorto@gmail.com
To: gnats-bugs@NetBSD.org
Subject: sysinst's use of disklabel having problems with space at end of disk name; fails install.
X-Send-Pr-Version: www-1.0

>Number:         54747
>Category:       install
>Synopsis:       sysinst's use of disklabel having problems with space at end of disk name; fails install.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    martin
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 07 19:10:00 +0000 2019
>Last-Modified:  Sat Dec 07 19:45:01 +0000 2019
>Originator:     Jacob Ritorto
>Release:        NetBSD 9.0_RC1
>Organization:
Rusty Muse
>Environment:
NetBSD localhost 9.0_RC1 NetBSD 9.0_RC1 (GENERIC) #0: Wed Nov 27 16:14:52 UTC 2019  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/sparc64/compile/GENERIC sparc64
>Description:
during install, when sysinst tried to parse the disk name, it fails apparently with botched handling of the disk name.  I have a Maxtor 6L250R0.  When sysinst tries to pull in the disk's name, there appears to be a space at the end of the name and this confuses and crashes the disklabel command when it tries to write the label (after the curses partitioning sequence).  The disklabel command failure causes install to not be able to proceed and therefore I can't install. 

This whole disklabel and partitioning sequence world fine in 8.1
>How-To-Repeat:
use a Maxtor 6L250R0 or possibly some other disk with whitespace at the end of its name and try to run through the partitioning sequence at install time.
>Fix:
I did ^Z the install upon disk label's failure and did manage to shell out and manually run disklabel by putting the disk name (along with its trailing space) in quotes, which did get disklabel to label the disk.   But since it had initially failed, when I exited my sub shell, the previous disklabel fail   precluded proceeding with install.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: install-manager->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Sat, 07 Dec 2019 19:42:00 +0000
Responsible-Changed-Why:
my bug


From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: install/54747: sysinst's use of disklabel having problems with
 space at end of disk name; fails install.
Date: Sat, 7 Dec 2019 20:40:09 +0100

 I think I fixed that early today in -current, will request pullup.

 Martin

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.45 2018/12/21 14:23:33 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.