Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2023 12:45:26 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        Kevin Oberman <rkoberman@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: Has the update procedure changed?
Message-ID:  <ZNNuRkt%2B6GJti7L6@pureos>
In-Reply-To: <3f8ab464-c9c9-b637-5cc6-c14f25f055b0@quip.cz>
References:  <CAN6yY1tiq4XQT_apnLo_aDgoMPEZ%2BZ4PfB8uqfMw3PeJbMGMqw@mail.gmail.com> <7A0E604D-EF40-4F10-B597-F1F076507192@gmail.com> <CAN6yY1teCLbtaN6V-fQqa0WTvrbWaOjy%2BB7F=bSq3t0Ue_ROVw@mail.gmail.com> <ZNEXzR0IL7%2BIDShe@c720-r368166> <CAN6yY1tFAxofH1JfkwfAZGuZ96BcvHHErS=64jWFr2E1zMha6w@mail.gmail.com> <3f8ab464-c9c9-b637-5cc6-c14f25f055b0@quip.cz>

index | next in thread | previous in thread | raw e-mail

El día miércoles, agosto 09, 2023 a las 12:40:31 +0200, Miroslav Lachman escribió:

> 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

Yes, exactly. Running mergemaster -p or (etcupdate -p) before 'make buildworld'
does not make any sense. 

	matthias

-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZNNuRkt%2B6GJti7L6>