From owner-svn-src-all@freebsd.org Fri Jun 29 21:15:18 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 56ECEF7C11F; Fri, 29 Jun 2018 21:15:18 +0000 (UTC) (envelope-from arichardson@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 06BA07BC26; Fri, 29 Jun 2018 21:15:18 +0000 (UTC) (envelope-from arichardson@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D6A4D2632C; Fri, 29 Jun 2018 21:15:17 +0000 (UTC) (envelope-from arichardson@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5TLFHel024761; Fri, 29 Jun 2018 21:15:17 GMT (envelope-from arichardson@FreeBSD.org) Received: (from arichardson@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5TLFHcs024760; Fri, 29 Jun 2018 21:15:17 GMT (envelope-from arichardson@FreeBSD.org) Message-Id: <201806292115.w5TLFHcs024760@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: arichardson set sender to arichardson@FreeBSD.org using -f From: Alex Richardson Date: Fri, 29 Jun 2018 21:15:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r335804 - in head: etc usr.sbin/rmt X-SVN-Group: head X-SVN-Commit-Author: arichardson X-SVN-Commit-Paths: in head: etc usr.sbin/rmt X-SVN-Commit-Revision: 335804 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2018 21:15:18 -0000 Author: arichardson Date: Fri Jun 29 21:15:17 2018 New Revision: 335804 URL: https://svnweb.freebsd.org/changeset/base/335804 Log: Fix missing files in METALOG with -DNO_ROOT By using INSTALL_LINK instead of calling ln during install the files end up in the METALOG file as well if we use -DNO_ROOT and will be included in a disk image when using makefs with METALOG as the input. The other file that was not included in METALOG was /var/db/services.db which is now also included for -DNO_ROOT. Approved By: brooks (mentor) Differential Revision: https://reviews.freebsd.org/D15665 Modified: head/etc/Makefile head/usr.sbin/rmt/Makefile Modified: head/etc/Makefile ============================================================================== --- head/etc/Makefile Fri Jun 29 20:17:47 2018 (r335803) +++ head/etc/Makefile Fri Jun 29 21:15:17 2018 (r335804) @@ -213,6 +213,7 @@ distribution: echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \ echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \ echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \ + echo "./var/db/services.db type=file mode=0644 uname=root gname=wheel"; \ ) | ${METALOG.add} .endif .if ${MK_AUTOFS} != "no" @@ -270,7 +271,7 @@ distribution: ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ dot.profile ${DESTDIR}/root/.profile; \ rm -f ${DESTDIR}/.profile; \ - ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile + ${INSTALL_LINK} ${DESTDIR}/root/.profile ${DESTDIR}/.profile .if ${MK_TCSH} != "no" cd ${.CURDIR}/root; \ ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ @@ -278,14 +279,14 @@ distribution: ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ dot.login ${DESTDIR}/root/.login; \ rm -f ${DESTDIR}/.cshrc; \ - ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc + ${INSTALL_LINK} ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc .endif .if ${MK_MAIL} != "no" cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ ${ETCMAIL} ${DESTDIR}/etc/mail if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ ! -f ${DESTDIR}/etc/aliases ]; then \ - ln -s mail/aliases ${DESTDIR}/etc/aliases; \ + ${INSTALL_SYMLINK} mail/aliases ${DESTDIR}/etc/aliases; \ fi .endif ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ Modified: head/usr.sbin/rmt/Makefile ============================================================================== --- head/usr.sbin/rmt/Makefile Fri Jun 29 20:17:47 2018 (r335803) +++ head/usr.sbin/rmt/Makefile Fri Jun 29 21:15:17 2018 (r335804) @@ -7,6 +7,6 @@ MAN= rmt.8 # called from /usr/src/etc/Makefile etc-rmt: rm -f ${DESTDIR}/etc/rmt - ln -s ..${BINDIR}/rmt ${DESTDIR}/etc/rmt + ${INSTALL_RSYMLINK} ..${BINDIR}/rmt ${DESTDIR}/etc/rmt .include