summaryrefslogtreecommitdiff
path: root/distrib/miniroot
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2003-07-10 14:12:55 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2003-07-10 14:12:55 +0000
commitd4f0a14a0e305178ddf459e4388488988deb9183 (patch)
treece043b83adcef8a953b1e3185674150a6e707fb8 /distrib/miniroot
parent111867cb03804d8b2068add652bc52ad5b91d850 (diff)
Ensure that the install/upgrade process is not troubled by any ulimit
settings. Set them all to 'unlimited'. Problem with datasize limit vs fsck of large filesystem noted by millert@. ok millert@.
Diffstat (limited to 'distrib/miniroot')
-rw-r--r--distrib/miniroot/install.sub7
1 files changed, 6 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 2123bc1b86e..1573f6fa94e 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.312 2003/07/03 15:19:01 krw Exp $
+# $OpenBSD: install.sub,v 1.313 2003/07/10 14:12:54 krw Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2003 Todd Miller, Theo de Raadt, Ken Westerback
@@ -1717,6 +1717,11 @@ FTPDIR="pub/OpenBSD/$VNAME"
OBSD="OpenBSD/$ARCH $VNAME"
SERVERLIST=/tmp/serverlist
+# Do not limit ourselves during installs or upgrades.
+for _opt in d f l m n p s; do
+ ulimit -$_opt unlimited
+done
+
# Extract and save one boot's worth of dmesg
dmesg | sed -ne '/^OpenBSD /h;/^OpenBSD /!H;${g;p;}' > /var/run/dmesg.boot