Re: Has the update procedure changed?
- In reply to: Miroslav Lachman : "Re: Has the update procedure changed?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Aug 2023 10:45:26 UTC
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