Mostly imported from netbsd-1-3 branch (1.3.3 and 1.3.4)
- Set ${driveunits} correctly. - swapon on small memory machines.
This commit is contained in:
parent
a33a2c20ff
commit
511a8fd293
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.6 1999/03/04 20:32:21 wrstuden Exp $
|
||||
# $NetBSD: Makefile,v 1.7 1999/03/24 15:54:45 minoura Exp $
|
||||
|
||||
TOP= ${.CURDIR}/..
|
||||
|
||||
@ -24,7 +24,7 @@ LISTS= list
|
||||
CRUNCHCONF= ${CBIN}.conf
|
||||
MTREE= mtree.conf
|
||||
|
||||
DISKTYPE= floppy3
|
||||
DISKTYPE= floppy5
|
||||
|
||||
install.sh: install.tmpl
|
||||
sed "s/@@VERSION@@/${VER}/" < ${.ALLSRC} > ${.TARGET}
|
||||
@ -36,7 +36,7 @@ start.sh: start.tmpl
|
||||
sed "s/@@VERSION@@/${VER}/" < ${.ALLSRC} > ${.TARGET}
|
||||
|
||||
all: ${AUXTARGETS} ${CBIN}
|
||||
dd if=/dev/zero of=${IMAGE} count=2880
|
||||
dd if=/dev/zero of=${IMAGE} count=2400
|
||||
vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
|
||||
disklabel -rw ${VND_CDEV} ${DISKTYPE}
|
||||
newfs -B be -m 0 -o space -i 5120 -c 80 ${VND_RDEV} ${DISKTYPE}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: install.tmpl,v 1.5 1999/01/31 17:35:49 minoura Exp $
|
||||
# $NetBSD: install.tmpl,v 1.6 1999/03/24 15:54:46 minoura Exp $
|
||||
#
|
||||
# Copyright (c) 1994 Christopher G. Demetriou
|
||||
# Copyright (c) 1997 Perry E. Metzger
|
||||
@ -396,6 +396,33 @@ echo -n "Labeling disk $drivename..."
|
||||
$DONTDOIT disklabel -w $drivename $labelname
|
||||
echo " done."
|
||||
|
||||
if [ `cat /kern/physmem` -lt 1536 ]; then # less than 6megs
|
||||
echo ""
|
||||
echo "You have to increase the virtual memory by activating"
|
||||
echo "the swap device you have just configured"
|
||||
echo "especially if you are going to retrieve the distribution sets"
|
||||
echo "via network."
|
||||
echo -n "Enable swapping? (yes/no)"
|
||||
getresp "y"
|
||||
case $resp in
|
||||
n*)
|
||||
echo ""
|
||||
echo "OK, swapping is not enabled."
|
||||
;;
|
||||
*)
|
||||
echo ""
|
||||
echo "Here we go..."
|
||||
swapctl -a /dev/${drivename}b
|
||||
;;
|
||||
esac
|
||||
echo ""
|
||||
echo "Note that you have to use the SMALL kernel named"
|
||||
echo "netbsd.SMALL which is included in the kern.tgz"
|
||||
echo "distribution set instead of the standard kernel."
|
||||
echo "After you have extracted the kern.tgz distribution set,"
|
||||
echo "type \`mv /mnt/netbsd.SMALL /mnt/netbsd'."
|
||||
fi
|
||||
|
||||
if [ "$sect_fwd" = "sf:" ]; then
|
||||
echo -n "Initializing bad144 badblock table..."
|
||||
$DONTDOIT bad144 $drivename 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: list,v 1.4 1999/02/05 15:50:51 minoura Exp $
|
||||
# $NetBSD: list,v 1.5 1999/03/24 15:54:46 minoura Exp $
|
||||
|
||||
# copy the crunched binary, link to it, and kill it
|
||||
COPY ${OBJDIR}/ramdiskbin ramdiskbin
|
||||
@ -42,6 +42,7 @@ LINK ramdiskbin sbin/route
|
||||
LINK ramdiskbin sbin/rrestore
|
||||
LINK ramdiskbin sbin/shutdown
|
||||
LINK ramdiskbin sbin/slattach
|
||||
LINK ramdiskbin sbin/swapctl
|
||||
LINK ramdiskbin sbin/umount
|
||||
SYMLINK /bin/cat usr/bin/chgrp
|
||||
SYMLINK /bin/cat usr/bin/ftp
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: ramdiskbin.conf,v 1.4 1999/01/21 07:52:01 garbled Exp $
|
||||
# $NetBSD: ramdiskbin.conf,v 1.5 1999/03/24 15:54:46 minoura Exp $
|
||||
#
|
||||
# ramdiskbin.conf - unified binary for the install ramdisk
|
||||
#
|
||||
@ -9,7 +9,7 @@ progs cat chmod chown chroot cp dd df disklabel ed
|
||||
progs fsck fsck_ffs ftp gzip ifconfig init less
|
||||
progs ln ls mkdir mknod mount mount_cd9660 mount_ffs mount_msdos
|
||||
progs mount_nfs mount_kernfs mt mv newfs ping pwd reboot restore rm
|
||||
progs route sed sh shutdown slattach stty sync pax test
|
||||
progs route sed sh shutdown slattach stty swapctl sync pax test
|
||||
progs tip umount update
|
||||
|
||||
special init srcdir distrib/utils/init_s
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: upgrade.tmpl,v 1.3 1999/01/25 23:34:25 garbled Exp $
|
||||
# $NetBSD: upgrade.tmpl,v 1.4 1999/03/24 15:54:46 minoura Exp $
|
||||
#
|
||||
# Copyright (c) 1994 Christopher G. Demetriou
|
||||
# Copyright (c) 1997 Perry E. Metzger
|
||||
@ -87,7 +87,7 @@ case "$resp" in
|
||||
esac
|
||||
|
||||
# find out what units are possible, and query the user.
|
||||
driveunits=`ls /dev/[sw]d?a | sed -e 's,/dev/\(...\)a,\1,g'`
|
||||
driveunits=`ls /dev/sd?a | sed -e 's,/dev/\(...\)a,\1,g'`
|
||||
if [ "X${driveunits}" = "X" ]; then
|
||||
echo "FATAL ERROR:"
|
||||
echo "No disk devices."
|
||||
@ -242,6 +242,33 @@ echo "Mounting remaining partitions..."
|
||||
chroot /mnt mount -at ffs > /dev/null 2>&1
|
||||
echo "Done."
|
||||
|
||||
if [ `cat /kern/physmem` -lt 1536 ]; then # less than 6megs
|
||||
echo ""
|
||||
echo "You have to increase the virtual memory by activating"
|
||||
echo "the swap device you have just configured"
|
||||
echo "especially if you are going to retrieve the distribution sets"
|
||||
echo "via network."
|
||||
echo -n "Enable swapping? (yes/no)"
|
||||
getresp "y"
|
||||
case $resp in
|
||||
n*)
|
||||
echo ""
|
||||
echo "OK, swapping is not enabled."
|
||||
;;
|
||||
*)
|
||||
echo ""
|
||||
echo "Here we go..."
|
||||
swapctl -a /dev/${drivename}b
|
||||
;;
|
||||
esac
|
||||
echo ""
|
||||
echo "Note that you have to use the SMALL kernel named"
|
||||
echo "netbsd.SMALL which is included in the kern.tgz"
|
||||
echo "distribution set instead of the standard kernel."
|
||||
echo "After you have extracted the kern.tgz distribution set,"
|
||||
echo "type \`mv /mnt/netbsd.SMALL /mnt/netbsd'."
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
echo "OK! The preliminary work of setting up your disk is now complete,"
|
||||
|
Loading…
Reference in New Issue
Block a user