NetBSD Problem Report #54937

From www@netbsd.org  Tue Feb  4 23:25:29 2020
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 B0E8D1A9213
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  4 Feb 2020 23:25:29 +0000 (UTC)
Message-Id: <20200204232528.7FD541A924C@mollari.NetBSD.org>
Date: Tue,  4 Feb 2020 23:25:28 +0000 (UTC)
From: i@-.-
Reply-To: i@-.-
To: gnats-bugs@NetBSD.org
Subject: "install" flag does not set in sysinst
X-Send-Pr-Version: www-1.0

>Number:         54937
>Category:       install
>Synopsis:       "install" flag does not set in sysinst
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    martin
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 04 23:30:00 +0000 2020
>Last-Modified:  Wed Feb 05 07:49:16 +0000 2020
>Originator:     guest01
>Release:        9.0_RC2
>Organization:
-
>Environment:
amd64
>Description:
Almost the same problem to #54787.
This problem occur when you install NetBSD 9.0_RC2 on disk with a partition created in NetBSD 8.0 because sysinst in 9.0_RC2 changes start sector of MBR partition. In my example it changes from 63 to 2048. It happens when you try set install flag of MBR partition.
When you set install flag of MBR partition, the flag is not set but start sector is changed. You must set install flag second time and then it is set.
But in NetBSD 9.0_RC2 (maybe with just one MBR partition ?) setting install flag does not matter. You can install system without setting install flag.
>How-To-Repeat:
First create partitions with NetBSD 8.0.
Boot computer with system installation disk and select:
        1	Install NetBSD
	2	Keyboard type b: US-English
	3	a: Install NetBSD to hard disk
	4	Shall we continue ? b: Yes
	5	On which disk do you want to install NetBSD? a: wd0
	6	a: This is the correct geometry
	7	b: Use the entire disk
	8	Do you want to update the bootcode in the Master Boot
                Record to the latest version of the NetBSD bootcode?
                a: Yes
	9	a: Set sizes of NetBSD partitions
	10	x: Accept partition sizes
	11	x: Partition sizes ok
	12	Please enter a name for your NetBSD disk [wd]:
	13	Shall we continue? b: Yes
	14	Selected bootblock: BIOS console x: Exit
	15	Abandon installation

Next try install NetBSD 9.0_RC2 on prepared disk.
Boot computer with NetBSD 9.0_RC2 installation disk and select:
        1	a: Install NetBSD to hard disk
	2	Shall we continue? b: Yes
	3	On which disk do you want to install NetBSD? a: wd0
	4	a: This is the correct geometry
	5	b: Edit the MBR partition table
	6	   Start(MB)   Size(MB) Flag Kind	Mount   Bootmenu
		           0     152627 a    NetBSD	/
	7	e: install: Yes
	8	x: Partition OK
	9          Start(MB)   Size(MB) Flag Kind	Mount   Bootmenu
		           1     152627 a    NetBSD	/
		Install flag is not set but Start is changed from 0 to 1
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: install-manager->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Wed, 05 Feb 2020 07:49:16 +0000
Responsible-Changed-Why:
take


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.