diff options
author | Alexander Hall <halex@cvs.openbsd.org> | 2010-08-05 10:45:33 +0000 |
---|---|---|
committer | Alexander Hall <halex@cvs.openbsd.org> | 2010-08-05 10:45:33 +0000 |
commit | af2e7b4bd44343ef69cd0e65b7c4977892e0a34d (patch) | |
tree | 0cba8b2ff52885889d6462461d82b7dc88167057 /distrib/miniroot/install.sub | |
parent | 1e97d3979af42e17e1fda8eeb8f584801e1edae8 (diff) |
Return the old behaviour of exiting if a mount fails rather than ignoring it
ok krw@
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index dc8793696f3..adc5dc42d16 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.614 2010/08/02 11:21:35 krw Exp $ +# $OpenBSD: install.sub,v 1.615 2010/08/05 10:45:32 halex Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -1602,7 +1602,7 @@ mount_fs() { _msg=$(mount -v -t $_fstype $_async -o $_opt $_dev $_mp) _err=$? echo $_msg | sed -e 's/, ctime=[^,)]*//' - if ! $_e ; then + if [ $_err != 0 ]; then # In addition to the error message displayed by mount ... cat <<__EOT |