Module Name: src
Committed By: tsutsui
Date: Sun May 29 10:15:30 UTC 2011
Modified Files:
src/sys/arch/sun68k/stand/tapeboot: boot.c
Log Message:
Disable LOAD_BACKWARDS on tapeboot which can't seek backwards.
Fixes bootstrap tapeboot installation failure on TME reported from ryoon@.
Should be pulled up to netbsd-5.
(note netbsd-5 uses LOAD_NOTE instead of LOAD_BACKWARDS)
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/sun68k/stand/tapeboot/boot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sun68k/stand/tapeboot/boot.c
diff -u src/sys/arch/sun68k/stand/tapeboot/boot.c:1.6 src/sys/arch/sun68k/stand/tapeboot/boot.c:1.7
--- src/sys/arch/sun68k/stand/tapeboot/boot.c:1.6 Mon Jan 12 07:01:00 2009
+++ src/sys/arch/sun68k/stand/tapeboot/boot.c Sun May 29 10:15:30 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.6 2009/01/12 07:01:00 tsutsui Exp $ */
+/* $NetBSD: boot.c,v 1.7 2011/05/29 10:15:30 tsutsui Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1993
@@ -107,7 +107,8 @@
printf("tapeboot: loading segment %s\n", file);
marks[MARK_START] = mark_start;
- if ((fd = loadfile(file, marks, LOAD_KERNEL)) != -1) {
+ if ((fd = loadfile(file, marks,
+ LOAD_KERNEL & ~LOAD_BACKWARDS)) != -1) {
break;
}
printf("tapeboot: segment %s: %s\n", file, strerror(errno));