Use /dev/fd0a rather than /dev/rfd0a to read instfs.tgz image from floppy.

It looks newer (appearred after 1.6) gzip tries to read less than DEV_BSIZE
(to check header?) so we can't use raw device directly.
(note sparc bootfs ramdisk doesn't have dd(1))

Workaround for PR port-sparc/42193, and would also fix PR install/28734.
This commit is contained in:
tsutsui 2009-12-24 14:56:14 +00:00
parent 4018fc33a7
commit 93bd1a122c

View File

@ -1,4 +1,4 @@
# $NetBSD: dot.profile,v 1.19 2008/04/30 13:10:49 martin Exp $
# $NetBSD: dot.profile,v 1.20 2009/12/24 14:56:14 tsutsui Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@ -76,7 +76,7 @@ floppy()
local dev rval
rval=0
dev="/dev/rfd0a"
dev="/dev/fd0a"
echo "Ejecting floppy disk"
eject $dev