Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/x68k/floppies/ramdisk Mostly imported from netbsd-1-...
details: https://anonhg.NetBSD.org/src/rev/6103d19242e2
branches: trunk
changeset: 467423:6103d19242e2
user: minoura <minoura%NetBSD.org@localhost>
date: Wed Mar 24 15:54:45 1999 +0000
description:
Mostly imported from netbsd-1-3 branch (1.3.3 and 1.3.4)
- Set ${driveunits} correctly.
- swapon on small memory machines.
diffstat:
distrib/x68k/floppies/ramdisk/Makefile | 6 ++--
distrib/x68k/floppies/ramdisk/install.tmpl | 29 ++++++++++++++++++++++++-
distrib/x68k/floppies/ramdisk/list | 3 +-
distrib/x68k/floppies/ramdisk/ramdiskbin.conf | 4 +-
distrib/x68k/floppies/ramdisk/upgrade.tmpl | 31 +++++++++++++++++++++++++-
5 files changed, 64 insertions(+), 9 deletions(-)
diffs (161 lines):
diff -r 31b34e342abb -r 6103d19242e2 distrib/x68k/floppies/ramdisk/Makefile
--- a/distrib/x68k/floppies/ramdisk/Makefile Wed Mar 24 15:13:46 1999 +0000
+++ b/distrib/x68k/floppies/ramdisk/Makefile Wed Mar 24 15:54:45 1999 +0000
@@ -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 @@
CRUNCHCONF= ${CBIN}.conf
MTREE= mtree.conf
-DISKTYPE= floppy3
+DISKTYPE= floppy5
install.sh: install.tmpl
sed "s/@@VERSION@@/${VER}/" < ${.ALLSRC} > ${.TARGET}
@@ -36,7 +36,7 @@
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}
diff -r 31b34e342abb -r 6103d19242e2 distrib/x68k/floppies/ramdisk/install.tmpl
--- a/distrib/x68k/floppies/ramdisk/install.tmpl Wed Mar 24 15:13:46 1999 +0000
+++ b/distrib/x68k/floppies/ramdisk/install.tmpl Wed Mar 24 15:54:45 1999 +0000
@@ -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 @@
$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
diff -r 31b34e342abb -r 6103d19242e2 distrib/x68k/floppies/ramdisk/list
--- a/distrib/x68k/floppies/ramdisk/list Wed Mar 24 15:13:46 1999 +0000
+++ b/distrib/x68k/floppies/ramdisk/list Wed Mar 24 15:54:45 1999 +0000
@@ -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/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
diff -r 31b34e342abb -r 6103d19242e2 distrib/x68k/floppies/ramdisk/ramdiskbin.conf
--- a/distrib/x68k/floppies/ramdisk/ramdiskbin.conf Wed Mar 24 15:13:46 1999 +0000
+++ b/distrib/x68k/floppies/ramdisk/ramdiskbin.conf Wed Mar 24 15:54:45 1999 +0000
@@ -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 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
diff -r 31b34e342abb -r 6103d19242e2 distrib/x68k/floppies/ramdisk/upgrade.tmpl
--- a/distrib/x68k/floppies/ramdisk/upgrade.tmpl Wed Mar 24 15:13:46 1999 +0000
+++ b/distrib/x68k/floppies/ramdisk/upgrade.tmpl Wed Mar 24 15:54:45 1999 +0000
@@ -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 @@
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 @@
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,"
Home |
Main Index |
Thread Index |
Old Index