Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/postinstall Skip varshm check if there is no fstab ...



details:   https://anonhg.NetBSD.org/src/rev/c1706637b741
branches:  trunk
changeset: 792043:c1706637b741
user:      njoly <njoly%NetBSD.org@localhost>
date:      Tue Dec 17 12:51:26 2013 +0000

description:
Skip varshm check if there is no fstab (like in chroots).

diffstat:

 usr.sbin/postinstall/postinstall |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 3bf395f4c56a -r c1706637b741 usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall  Tue Dec 17 09:54:08 2013 +0000
+++ b/usr.sbin/postinstall/postinstall  Tue Dec 17 12:51:26 2013 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.160 2013/12/13 07:37:50 martin Exp $
+# $NetBSD: postinstall,v 1.161 2013/12/17 12:51:26 njoly Exp $
 #
 # Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1845,6 +1845,7 @@
        op="$1"
        failed=0
 
+       [ -f "${DEST_DIR}/etc/fstab" ] || return 0
        if ${GREP} -w "/var/shm" "${DEST_DIR}/etc/fstab" >/dev/null 2>&1;
        then
                failed = 0;



Home | Main Index | Thread Index | Old Index