Subject: port-sparc/1736: [dM] forgotten ufs->ffs change: installboot
To: None <gnats-bugs@gnats.netbsd.org>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: netbsd-bugs
Date: 11/07/1995 11:23:37
>Number: 1736
>Category: port-sparc
>Synopsis: [dM] forgotten ufs->ffs change: installboot
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 7 11:35:00 1995
>Last-Modified:
>Originator: der Mouse
>Organization:
Dis-
>Release: NetBSD/sparc 1.1-alpha as of Monday morning's sup
>Environment:
IPC, but it's irrelevant
>Description:
installboot demands that its boot file be on a ufs filesystem.
Unfortunately for it, local filesystems are now ffs.
>How-To-Repeat:
After installing and booting from a modern kernel,
# installboot -v /boot bootxx /dev/rsd0a
boot: /boot
proto: bootxx
device: /dev/rsd0a
bootxx: entry point 0x340000
bootxx: a.out header left on
proto bootblock size 7680
room for 256 filesystem blocks at 0x341868
installboot: /boot: must be on a UFS filesystem
#
>Fix:
--- OLD/sys/arch/sparc/stand/installboot.c Thu Jan 1 00:00:00 1970
+++ NEW/sys/arch/sparc/stand/installboot.c Thu Jan 1 00:00:00 1970
@@ -310,8 +310,8 @@
if (fstatfs(fd, &statfsbuf) != 0)
err(1, "statfs: %s", boot);
- if (strncmp(statfsbuf.f_fstypename, "ufs", MFSNAMELEN))
- errx(1, "%s: must be on a UFS filesystem", boot);
+ if (strncmp(statfsbuf.f_fstypename, "ffs", MFSNAMELEN))
+ errx(1, "%s: must be on a FFS filesystem", boot);
if (fsync(fd) != 0)
err(1, "fsync: %s", boot);
"It works for me". :-)
der Mouse
mouse@collatz.mcrcim.mcgill.edu
>Audit-Trail:
>Unformatted: