From nobody Wed Aug 09 10:40:31 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RLRRF1RFlz4pm60 for ; Wed, 9 Aug 2023 10:40:41 +0000 (UTC) (envelope-from SRS0=y0si=D2=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RLRRD2Hncz3Mtv for ; Wed, 9 Aug 2023 10:40:40 +0000 (UTC) (envelope-from SRS0=y0si=D2=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id B5357D7893; Wed, 9 Aug 2023 12:40:32 +0200 (CEST) Received: from [192.168.145.49] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id D450DD7887; Wed, 9 Aug 2023 12:40:31 +0200 (CEST) Message-ID: <3f8ab464-c9c9-b637-5cc6-c14f25f055b0@quip.cz> Date: Wed, 9 Aug 2023 12:40:31 +0200 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: Has the update procedure changed? Content-Language: cs-Cestina, en-US To: Kevin Oberman , Matthias Apitz , freebsd-current@freebsd.org References: <7A0E604D-EF40-4F10-B597-F1F076507192@gmail.com> From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4RLRRD2Hncz3Mtv X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ] On 09/08/2023 08:22, Kevin Oberman wrote: > I don't see how you get this from the man page. > "Compares only files known to be >                  essential to the success of {build|install}world, i.e., >                  /etc/group and /etc/master.passwd. > > If it is potentially updating files that MIGHT be essential to a > successful buildworld, running it after buildkernel seems quite wrong. > At least I read {build|install}world as buildworld or installworld. Correct me if I am wrong but AFAIK etcupdate -p (or mergemaster -p) updates entries in [master.]passwd and group which are only needed to install new files with the right owner and group set, not to build these files. (installkernel installs everything ass root:wheel) Also Makefile contains this steps where mergemaster -p should be run after installkernel and reboot: 2. `make buildworld' 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). [steps 3. & 4. can be combined by using the "kernel" target] 5. `reboot' (in single user mode: boot -s from the loader prompt). 6. `mergemaster -p' 7. `make installworld' And man page for etcpupdate -p has this: -p Enable “pre-world” mode. Only merge changes to files that are necessary to successfully run ‘make installworld’ or ‘make installkernel Kind regards Miroslav Lachman