NetBSD Problem Report #56081

From paul@whooppee.com  Sun Mar 28 15:44:37 2021
Return-Path: <paul@whooppee.com>
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 9B15A1A9217
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 28 Mar 2021 15:44:37 +0000 (UTC)
Message-Id: <20210328154432.EE11A30F2C4@speedy.whooppee.com>
Date: Sun, 28 Mar 2021 08:44:32 -0700 (PDT)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: build.sh install-image fails to clean a too-small image file
X-Send-Pr-Version: 3.95

>Number:         56081
>Category:       install
>Synopsis:       build.sh install-image fails to clean a too-small image file
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 28 15:45:00 +0000 2021
>Closed-Date:    Wed Jun 09 03:32:39 +0000 2021
>Last-Modified:  Wed Jun 09 03:32:39 +0000 2021
>Originator:     Paul Goyette
>Release:        NetBSD 9.99.80
>Organization:
+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul@whooppee.com     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette@netbsd.org   |
+--------------------+--------------------------+-----------------------+
>Environment:


System: NetBSD speedy.whooppee.com 9.99.80 NetBSD 9.99.80 (SPEEDY 2021-02-13 20:36:51 UTC) #0: Sat Feb 13 23:14:35 UTC 2021 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
(Filed under category install - pleasae update as appropriate!)

If you attempt a ``build.sh install-image'' and the size of the image
file is too small (specified by the INSTIMAGEMB= parameter in
src/distrib/$ARCH/installimage/Makefile), a subsequent attempt to
build the install-image target (even after updating the above build
parameter) fails due to a gpt label error.  It seems that the image
file still exists. 
seems that the too-small image file is not recreates

>How-To-Repeat:
1. build a release
2. temporarily reduce the INSTIMAGEMB parameter to a too-small value
3. attempt a build.sh install-image
4. restore the INSTIMAGEMB parameter's value
5. attempt another build.sh install-image

>Fix:

Check if the image size is big enough (check already exists, with an
appropriate error message), and remove the image file if too small.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Wed, 09 Jun 2021 03:32:39 +0000
State-Changed-Why:
A fix for this was committed by tsutsui@


>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.