Subject: port-sparc/17614: Sparc boot.fs ramdisk is broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <adam@lebsack.com>
List: netbsd-bugs
Date: 07/16/2002 12:14:50
>Number: 17614
>Category: port-sparc
>Synopsis: Sparc boot.fs ramdisk is broken
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-sparc-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 16 12:15:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Adam Lebsack
>Release: NetBSD 1.6_BETA4
>Organization:
None
>Environment:
NetBSD trippel 1.6_BETA4 NetBSD 1.6_BETA4 (SPARCS) #3: Sun Jul 14 10:23:25 MDT 2002 root@trippel:/u1/Sandbox/SPARCS sparc
>Description:
The boot.fs ramdisk does not properly setup a second ramdisk for instfs.tgz. Extracting the tarball results in exhausted inodes. I made this critical/high priority because this should be fixed before 1.6-final.
>How-To-Repeat:
Put boot.fs onto a floppy or a bootable sparc CD-ROM and follow the instructions for loading instfs.tgz. You should see a lot of tar extraction errors.
>Fix:
Here's a patch:
--- src/distrib/sparc/ramdisk/dot.profile.orig Tue Jul 16 13:07:20 2002
+++ src/distrib/sparc/ramdisk/dot.profile Tue Jul 16 13:07:00 2002
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.15 2000/11/28 21:51:09 pk Exp $
+# $NetBSD: dot.profile,v 1.16 2001/06/17 11:57:23 pk Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -45,6 +45,7 @@
MACHINE=sparc
INSTFS_MP=/instfs
MINIROOT_FSSIZE=10000
+MINIROOT_BPINODE=1024
if [ "${BOOTFS_DONEPROFILE}" != "YES" ]; then
@@ -55,7 +56,7 @@
mount_ffs -o update /dev/md0a /
# mount /instfs
- mount_mfs -s $MINIROOT_FSSIZE swap $INSTFS_MP
+ mount_mfs -s $MINIROOT_FSSIZE -i $MINIROOT_BPINODE swap $INSTFS_MP
fi
# A cat simulator
>Release-Note:
>Audit-Trail:
>Unformatted: