Hi.

 If var_shm_symlink="/tmp/.shm" is in /etc/rc.conf and no /var/shm mount
in /etc/fstab, postinstall complains:

        varshm check:
        No /var/shm mount found in /etc/fstab

So, I propose the following change:

Index: postinstall
===================================================================
RCS file: /cvsroot/src/usr.sbin/postinstall/postinstall,v
retrieving revision 1.221
diff -u -p -r1.221 postinstall
--- postinstall 4 Dec 2018 16:53:44 -0000       1.221
+++ postinstall 31 Jan 2019 08:22:15 -0000
@@ -2229,7 +2229,10 @@ do_varshm()
        failed=0
[ -f "${DEST_DIR}/etc/fstab" ] || return 0
-       if ${GREP} -w "/var/shm" "${DEST_DIR}/etc/fstab" >/dev/null 2>&1;
+       if ${GREP} -E "^var_shm_symlink" "${DEST_DIR}/etc/rc.conf" >/dev/null 
2>&1;
+       then
+               failed=0;
+       elif ${GREP} -w "/var/shm" "${DEST_DIR}/etc/fstab" >/dev/null 2>&1;
        then
                failed=0;
        else

OK?

--
-----------------------------------------------
                SAITOH Masanobu (msai...@execsw.org
                                 msai...@netbsd.org)

Reply via email to