Appendix C now contains the full CNCL 1.0 text, exactly as it is in LICENSE (line-wrapped for the page), and the preface has a long section that explains what the licence says, what it does not cover (NetBSD's BSD licence, CDE/MCDE's LGPL, pkgsrc packages, Hack, DocBook) and why Makronix uses a licence this short. The same pass corrects the MCDE help claim: the cross-built MCDE package has no help pages (options.mk turns docs off), so the Information Manager holds this guide and no program help books. Rebuilt all five forms: 67-page PDF, HTML, 27 manual pages, the dtinfo library and www/guide.html. check.sh green, test-tools 33 ok, 0 bad.
99 lines
4.4 KiB
XML
99 lines
4.4 KiB
XML
<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->
|
|
<chapter id="updating">
|
|
<title>Updating the Desktop</title>
|
|
|
|
<para>Makronix is one system: the base, the X server, the desktop and the
|
|
packages that came with the release move together. The package tools
|
|
update the packages that were installed with them; a Makronix release
|
|
updates everything else. This chapter is the practical order.</para>
|
|
|
|
<sect1 id="updating-settings">
|
|
<title>From System Settings</title>
|
|
|
|
<para>Open <application>System Settings</application> and choose
|
|
<guilabel>Software Update</guilabel>. The dialog reads the source from
|
|
the first line of <filename>/etc/makronix/update</filename>, shows what
|
|
it found, and asks for the administrator's password before it changes
|
|
anything. It runs <command>sysupgrade</command> for the base system and
|
|
then <command>pkg_add -uu</command> for the registered packages. The
|
|
machine must be rebooted afterwards.</para>
|
|
|
|
<para>The source is a directory, a <filename>file://</filename> address
|
|
or an <filename>https://</filename> address. <filename>http://</filename>
|
|
and <filename>ftp://</filename> are refused: a base system that is
|
|
fetched over an unencrypted connection is a base system that can be
|
|
changed on the way. An <filename>https://</filename> source is protected
|
|
by TLS; a <filename>file://</filename> source is as trusted as the medium
|
|
it is on. This release does not verify a signature on the sets, so use
|
|
a source you control and keep the previous medium until the new system
|
|
has started.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="updating-command">
|
|
<title>From the command line</title>
|
|
|
|
<screen># cat /etc/makronix/update
|
|
https://example.invalid/makronix/0.99.10/amd64
|
|
# sysupgrade auto "$(cat /etc/makronix/update)"
|
|
# postinstall -s /usr/src/etc fix
|
|
# etcupdate -s /usr/src/etc
|
|
# pkg_add -uu
|
|
# reboot</screen>
|
|
|
|
<para>The order matters: the base system first, then the configuration
|
|
merge, then the packages, then the reboot. If <command>sysupgrade</command>
|
|
fails, stop there; a half-updated base with new packages is harder to
|
|
repair than either one alone.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="updating-mcde">
|
|
<title>MCDE and the makronix set</title>
|
|
|
|
<para>The desktop is part of the <quote>makronix</quote> set, which the
|
|
installer unpacks as part of the system. It is not in the package
|
|
database, so <command>pkg_add -u</command> does not update it; a new
|
|
Makronix release does. The same is true of the base system's programs
|
|
(vim, git-base, sysupgrade) and of the libraries MCDE needs.</para>
|
|
|
|
<para>A person who builds Makronix from source updates the desktop by
|
|
building the new tree and installing its release; the next chapter
|
|
describes the build. A person who only uses the desktop updates it with
|
|
the release's own update dialog or medium.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="updating-guide">
|
|
<title>The guide itself</title>
|
|
|
|
<para>The guide is generated from <filename>docs/guide</filename> and
|
|
installed with the release. After a change to the guide's source, rebuild
|
|
it and install the five forms:</para>
|
|
|
|
<screen>$ cd /usr/src
|
|
$ sh docs/guide/build.sh all
|
|
$ sh docs/guide/build.sh install</screen>
|
|
|
|
<para>The build needs <application>pandoc</application>,
|
|
<application>xmllint</application>, <application>mandoc</application>,
|
|
Chrome or Google Chrome for the PDF, and a host build of MCDE for the
|
|
information library. <command>build.sh check</command> verifies that
|
|
every form was produced; the details are in
|
|
<filename>docs/guide/AGENTS.md</filename>.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="updating-rollback">
|
|
<title>If an update goes wrong</title>
|
|
|
|
<para>The old kernel is <filename>/netbsd.old</filename> and the loader's
|
|
menu can start it. The old configuration is in
|
|
<filename>/etc/rc.conf.old</filename> after <command>postinstall</command>
|
|
or <command>etcupdate</command> replaced it. On an encrypted system, the
|
|
kernel the machine starts is the copy in <filename>/cgdboot</filename>;
|
|
<xref linkend="upgrade-encrypted"/> explains how to put the old one
|
|
back.</para>
|
|
|
|
<para>A machine that does not start is not a machine that is lost. Start
|
|
the medium, mount the root file system and read the logs; the data is
|
|
still there, and the source set can rebuild the system around it.</para>
|
|
</sect1>
|
|
</chapter>
|