diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-04-07 06:09:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-04-07 06:09:23 +0000 |
commit | aac78648b993092b263ac493905712c0741f89bf (patch) | |
tree | ff0149bc0428e2d516a1d17d55ee56ba2c14a30a | |
parent | 083665277fab17fdc382ee38452df0b015d4e6d7 (diff) |
For low-memory machines, help people by putting in enough swapon support, so
that people can do a boot, disklabel, reboot, boot, disklabel, swapon, ....
and finish their install.
-rw-r--r-- | distrib/miniroot/install.sh | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index 68a3fbe9eeb..4e467406c3d 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sh,v 1.47 1999/04/07 05:58:04 deraadt Exp $ +# $OpenBSD: install.sh,v 1.48 1999/04/07 06:09:22 deraadt Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997,1998 Todd Miller, Theo de Raadt @@ -306,10 +306,19 @@ else done fi -#unfortunately, cannot do this in 2.5 -#if [ -f /sbin/swapon ]; then -# swapon /dev/${ROOTDISK}b -#fi +if [ -f /sbin/swapon ]; then + echo "Do you wish to enable swap for this install (WARNING: Useful for low memory" + echo "machines, but only do this if the b partition on the root disk was configured" + echo -n "correctly before this kernel boot, or disaster will result)? [n]" + getresp "n" + case "$resp" in + y*|Y*) + swapon /dev/${ROOTDISK}b + ;; + *) + ;; + esac +fi # Get network configuration information, and store it for placement in the # root filesystem later. |