NetBSD Problem Report #39894

From gson@gson.org  Tue Nov 11 15:00:24 2008
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id A8D8663B898
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 11 Nov 2008 15:00:24 +0000 (UTC)
Message-Id: <20081111150021.8508575F68@guava.gson.org>
Date: Tue, 11 Nov 2008 17:00:21 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@gnats.NetBSD.org
Cc: dbj@NetBSD.org
Subject: Boot floppies no longer boot in -current
X-Send-Pr-Version: 3.95

>Number:         39894
>Category:       install
>Synopsis:       Boot floppies no longer boot in -current
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    dbj
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 11 15:05:00 +0000 2008
>Closed-Date:    Fri Nov 14 19:50:35 +0000 2008
>Last-Modified:  Fri Nov 14 19:50:35 +0000 2008
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current as of CVS date 2008.11.04.23.01.04
>Organization:
>Environment:
System: NetBSD i386 under qemu
Architecture: i386
Machine: i386
>Description:

The NetBSD-current boot floppies no longer boot.  I found this with
the boot-com1.fs floppy on a qemu i386 host, but I assume it also
affects other floppies and architectures as well as physical hosts.

Using an automated binary CVS search, I have determined that this
regression appeared with src/distrib/common/buildfloppies.sh revision
1.14.  Revision 1.15 remains broken.

I suspect the problem may be caused by the fact that the first file in
the tar archive contained on the floppy is now "." rather than "boot".

>How-To-Repeat:

Run the following commands:

  ftp ftp://ftp.netbsd.org/pub/NetBSD-daily/HEAD/200811090002Z/i386/installation/floppy/boot-com1.fs
  qemu -nographic -serial stdio -fda boot-com1.fs

and observe that qemu hangs immediately.

>Fix:

Revert buildfloppies.sh to 1.13.

>Release-Note:

>Audit-Trail:
From: Alan Barrett <apb@cequrux.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/39894: Boot floppies no longer boot in -current
Date: Tue, 11 Nov 2008 17:28:16 +0200

 On Tue, 11 Nov 2008, Andreas Gustafsson wrote:
 > I suspect the problem may be caused by the fact that the first file in
 > the tar archive contained on the floppy is now "." rather than "boot".

 Does it help to change ". type=dir" to ". type=dir optional"
 in src/distrib/common/buildfloppies.sh ?

 --apb (Alan Barrett)

From: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Cc: install-manager@netbsd.org,
    gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org
Subject: Re: install/39894: Boot floppies no longer boot in -current
Date: Tue, 11 Nov 2008 21:20:15 +0200

 Alan Barrett wrote:
 >  Does it help to change ". type=dir" to ". type=dir optional"
 >  in src/distrib/common/buildfloppies.sh ?

 Alas, no.
 -- 
 Andreas Gustafsson, gson@gson.org

From: "Darrin B. Jewell" <dbj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39894 CVS commit: src/distrib/common
Date: Tue, 11 Nov 2008 19:55:21 +0000 (UTC)

 Module Name:	src
 Committed By:	dbj
 Date:		Tue Nov 11 19:55:21 UTC 2008

 Modified Files:
 	src/distrib/common: buildfloppies.sh

 Log Message:
 roll back to revision 1.13 until problems mentioned in
 PR 39894
 can be figured out.
 i suspect we can add "boot" to the mtree input, but experimentation
 needs to happen first.


 To generate a diff of this commit:
 cvs rdiff -r1.15 -r1.16 src/distrib/common/buildfloppies.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: install-manager->dbj
Responsible-Changed-By: dbj@NetBSD.org
Responsible-Changed-When: Tue, 11 Nov 2008 20:07:27 +0000
Responsible-Changed-Why:
i caused this problem.


From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: install-manager@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
        tsutsui@ceres.dti.ne.jp
Subject: Re: install/39894: Boot floppies no longer boot in -current
Date: Wed, 12 Nov 2008 22:00:02 +0900

 gson@gson.org wrote:

 > I suspect the problem may be caused by the fact that the first file in
 > the tar archive contained on the floppy is now "." rather than "boot".

 FS_OPS(ustarfs) can't open files (boot.cfg in that case)
 because files are stored with "./" prefix added by specfile:

 ---
 % dd if=netbsd-5/boot-big.fs bs=8k skip=1 | tar tvf -
 -r--r--r--  1 10000    125        60500 Nov  4 18:06 boot
 -rw-r--r--  1 10000    125          466 Nov  4 18:06 boot.cfg
 -rw-r--r--  1 10000    125            0 Nov  4 18:06 USTAR.volsize.16040
 -rw-r--r--  1 10000    125      2809650 Nov  4 18:07 netbsd
 tar: ustar vol 1, 4 files, 2875392 bytes read, 0 bytes written in 1 secs (2875392 bytes/sec)
 449+0 records in
 449+0 records out
 3678208 bytes transferred in 0.017 secs (216365176 bytes/sec)
 % dd if=HEAD/boot-big.fs bs=8k skip=1 | tar tvf -
 drwxr-xr-x  2 root     wheel          0 Nov 10 08:51 .
 -r--r--r--  1 root     wheel      60500 Nov 10 08:51 ./boot
 -rw-r--r--  1 root     wheel        466 Nov 10 08:51 ./boot.cfg
 -rw-r--r--  1 root     wheel          0 Nov 10 08:51 ./USTAR.volsize.16040
 -rw-r--r--  1 root     wheel    2819013 Nov 10 08:51 ./netbsd
 449+0 records in
 449+0 records out
 tar: ustar vol 1, 5 files, 2883584 bytes read, 0 bytes written in 1 secs (2883584 bytes/sec)
 3678208 bytes transferred in 0.014 secs (262729142 bytes/sec)
 % 
 ---

 No idea how to specify uid/gid without such prefix.

 ---
 Izumi Tsutsui

From: Alan Barrett <apb@cequrux.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/39894: Boot floppies no longer boot in -current
Date: Wed, 12 Nov 2008 18:13:56 +0200

 On Tue, 11 Nov 2008, Andreas Gustafsson wrote:
 > I suspect the problem may be caused by the fact that the first file in
 > the tar archive contained on the floppy is now "." rather than "boot".

 I hope that I have fixed this with Makefile.tarfloppy revision 1.15 and 
 buildfloppies.sh revision 1.17.

 --apb (Alan Barrett)

State-Changed-From-To: open->closed
State-Changed-By: dbj@NetBSD.org
State-Changed-When: Fri, 14 Nov 2008 19:50:35 +0000
State-Changed-Why:
apb checked in a proper fix.
Thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.