Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Aug 2023 12:51:11 -0400
From:      Tim Kellers <smsdtv@gmail.com>
To:        Kevin Oberman <rkoberman@gmail.com>
Cc:        Matthias Apitz <guru@unixarea.de>, freebsd-current@freebsd.org
Subject:   Re: Has the update procedure changed?
Message-ID:  <7A0E604D-EF40-4F10-B597-F1F076507192@gmail.com>
In-Reply-To: <CAN6yY1tiq4XQT_apnLo_aDgoMPEZ%2BZ4PfB8uqfMw3PeJbMGMqw@mail.gmail.com>
References:  <CAN6yY1tiq4XQT_apnLo_aDgoMPEZ%2BZ4PfB8uqfMw3PeJbMGMqw@mail.gmail.com>

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

--Apple-Mail-C850A5FF-CDB1-42D5-A383-5B1AD2F929A4
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D=
utf-8"></head><body dir=3D"auto"><div dir=3D"ltr"></div><div dir=3D"ltr"><br=
></div><div dir=3D"ltr"><br><blockquote type=3D"cite">On Aug 6, 2023, at 11:=
05 AM, Kevin Oberman &lt;rkoberman@gmail.com&gt; wrote:<br><br></blockquote>=
</div><blockquote type=3D"cite"><div dir=3D"ltr">=EF=BB=BF<div dir=3D"ltr"><=
div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:tahoma,san=
s-serif;font-size:small">On Sat, Aug 5, 2023 at 10:51=E2=80=AFPM Matthias Ap=
itz &lt;<a href=3D"mailto:guru@unixarea.de">guru@unixarea.de</a>&gt; wrote:<=
/div></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex">In the past I was used to use the following procedure to install a=
 new<br>
kernel and world:<br>
<br>
&nbsp; &nbsp; # cd /usr/src<br>
&nbsp; &nbsp; # make installkernel<br>
&nbsp; &nbsp; # shutdown -r now<br>
<br>
&nbsp; &nbsp; boot -s from the loader prompt<br>
<br>
&nbsp; &nbsp; # adjkerntz -i<br>
&nbsp; &nbsp; # mount -a -t ufs<br>
&nbsp; &nbsp; # mergemaster -p<br>
&nbsp; &nbsp; # cd /usr/src<br>
&nbsp; &nbsp; # make installworld<br>
&nbsp; &nbsp; # mergemaster<br>
&nbsp; &nbsp; # yes | make delete-old<br>
&nbsp; &nbsp; # yes | make delete-old-libs<br>
<br>
&nbsp; &nbsp; # reboot<br>
<br>
Now the handbook <a href=3D"https://docs.freebsd.org/en/books/handbook/cutti=
ng-edge/#makeworld" rel=3D"noreferrer" target=3D"_blank">https://docs.freebs=
d.org/en/books/handbook/cutting-edge/#makeworld</a><br>
says only:<br>
<br>
&nbsp; &nbsp; # cd /usr/src<br>
&nbsp; &nbsp; # make installkernel<br>
&nbsp; &nbsp; # shutdown -r now<br>
&nbsp; &nbsp; # cd /usr/src<br>
&nbsp; &nbsp; # make installworld<br>
&nbsp; &nbsp; # shutdown -r now<br>
<br>
Has this changed in past two years?<br>
<br>
Thanks<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; matthias<br>
-- <br>
Matthias Apitz, =E2=9C=89 <a href=3D"mailto:guru@unixarea.de" target=3D"_bla=
nk">guru@unixarea.de</a>, <a href=3D"http://www.unixarea.de/" rel=3D"norefer=
rer" target=3D"_blank">http://www.unixarea.de/</a>; +49-176-38902045<br>
Public GnuPG key: <a href=3D"http://www.unixarea.de/key.pub" rel=3D"noreferr=
er" target=3D"_blank">http://www.unixarea.de/key.pub</a><br></blockquote><di=
v>&nbsp;</div></div><div style=3D"font-family:tahoma,sans-serif;font-size:sm=
all" class=3D"gmail_default">Wow! Several obvious reasons that this looks ju=
st wrong. (Then again, so is yours in one case.)</div><div style=3D"font-fam=
ily:tahoma,sans-serif;font-size:small" class=3D"gmail_default">1. "mergemast=
er -p" MUST be run before you build the kernel. (Actually, hte man page says=
 it should be run BEFORE buildworld and that is what I've always done althou=
gh I have never seen a case where it was needed until buildkernel.</div><div=
 style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_defa=
ult">2. While mergemaster(8) is still in the system, you really should be us=
ing etcupdate(8). You also need to understand how a three-way merge is done a=
nd that you&nbsp; often need to edit the merged file when first running it.&=
nbsp; It's pretty simple to run and rarely is needed after the first run, bu=
t it is critical to do this for /etc files that you have modified. It's gene=
rally just picking which of the two (original/yours) you want in the final f=
ile. The big win with etcupdate(8) is that it only needs to be run once for m=
odified files in almost all cases.</div><div style=3D"font-family:tahoma,san=
s-serif;font-size:small" class=3D"gmail_default">3. Where is "make check-old=
" and the other tests to get rid of old files. Leaving these around can lead=
 to serious issues.</div><div style=3D"font-family:tahoma,sans-serif;font-si=
ze:small" class=3D"gmail_default">4. If you don't do adjkerntz -i, you might=
 find files installed in the future which can get REALLY&nbsp; confusing! <b=
r></div><div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D=
"gmail_default"><br></div><div style=3D"font-family:tahoma,sans-serif;font-s=
ize:small" class=3D"gmail_default">Historically, the final source of truth f=
or all of this is /usr/src/UPDATING. It has been updated for etcupdate(8) an=
d is handled by imp@, so I tend to believe it is correct.</div><div style=3D=
"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default"><br>=
</div><div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"=
gmail_default">OK. Everyone who knows better, please explain why. I didn't m=
ention "fsck -p" but I'm really paranoid and it really, really should not be=
 needed unless something goes wrong in the shutdown after installing the new=
 kernel.<br></div><span class=3D"gmail_signature_prefix">-- </span><br><div d=
ir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr">=
<div><div dir=3D"ltr"><div><div dir=3D"ltr">Kevin Oberman, Part time kid her=
der and retired Network Engineer<br>E-mail: <a href=3D"mailto:rkoberman@gmai=
l.com" target=3D"_blank">rkoberman@gmail.com</a><br></div><div>PGP Fingerpri=
nt: D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></=
div></div></div></div>
</div></blockquote><br><div>I=E2=80=99ve always used the procedure listed at=
 line 90 of the Makefile in /usr/src as the source of truth. Has that change=
d?</div><div><br></div><div>Tim</div></body></html>=

--Apple-Mail-C850A5FF-CDB1-42D5-A383-5B1AD2F929A4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7A0E604D-EF40-4F10-B597-F1F076507192>