Module Name: src
Committed By: njoly
Date: Tue Dec 17 12:51:26 UTC 2013
Modified Files:
src/usr.sbin/postinstall: postinstall
Log Message:
Skip varshm check if there is no fstab (like in chroots).
To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/usr.sbin/postinstall/postinstall
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/postinstall/postinstall
diff -u src/usr.sbin/postinstall/postinstall:1.160 src/usr.sbin/postinstall/postinstall:1.161
--- src/usr.sbin/postinstall/postinstall:1.160 Fri Dec 13 07:37:50 2013
+++ src/usr.sbin/postinstall/postinstall Tue Dec 17 12:51:26 2013
@@ -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 @@ do_varshm()
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;