diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-05-08 15:48:20 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-05-08 15:48:20 +0000 |
commit | add971c9f562ea93b1f31acbd08d8120f52ce890 (patch) | |
tree | 141ef0a538c24e893774cca98cde42dae77547f3 /distrib/miniroot | |
parent | f9ac3f2ed39dbf3ed8ecc0e9ddeebd2d6a6dcc9f (diff) |
Don't try to copy disktab.shadow if it does not exist
Diffstat (limited to 'distrib/miniroot')
-rw-r--r-- | distrib/miniroot/install.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index 18352218a80..7abe1ffdc9b 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sh,v 1.7 1997/05/03 23:06:01 tholo Exp $ +# $OpenBSD: install.sh,v 1.8 1997/05/08 15:48:19 tholo Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -116,7 +116,9 @@ fi if [ "`df /`" = "`df /mnt`" ]; then # Install the shadowed disktab file; lets us write to it for temporary # purposes without mounting the miniroot read-write. - cp /etc/disktab.shadow /tmp/disktab.shadow + if [ -f /etc/disktab.shadow ]; then + cp /etc/disktab.shadow /tmp/disktab.shadow + fi while [ "X${ROOTDISK}" = "X" ]; do getrootdisk |