diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-04-01 04:14:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-04-01 04:14:09 +0000 |
commit | fed2cc1a89d19593f08dbddfb19ed7a5f1670434 (patch) | |
tree | 29db02436dc7efccc5d090f27aad482f0ba44b48 /distrib/miniroot | |
parent | b2f9be366dd213e8c2afcca06d7f17b4786900bb (diff) |
Use /tmp/fstab.DISK if it exists to preload mountpoints
Diffstat (limited to 'distrib/miniroot')
-rw-r--r-- | distrib/miniroot/install.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |