From fed2cc1a89d19593f08dbddfb19ed7a5f1670434 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 1 Apr 1999 04:14:09 +0000 Subject: Use /tmp/fstab.DISK if it exists to preload mountpoints --- distrib/miniroot/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'distrib/miniroot') diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index 189de34ebef..d59d56bb7ef 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sh,v 1.44 1999/02/28 06:50:33 deraadt Exp $ +# $OpenBSD: install.sh,v 1.45 1999/04/01 04:14:08 millert 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 @@ -205,6 +205,10 @@ __get_filesystems_1 _ps=`echo ${_p} | sed 's/^.//'` _partitions[${_npartitions}]=${_pp} _psizes[${_npartitions}]=${_ps} + # If the user assigned a mount point, use it. + if [ -f /tmp/fstab.${DISK} ]; then + _mount_points[${_npartitions}]=`sed -n "s:^/dev/$DISK$_pp[ ]*\([^ ]*\).*:\1:p" < /etc/fstab.${DISK}` + fi _npartitions=$(( ${_npartitions} + 1 )) done -- cgit v1.2.3