One DocBook source in docs/guide produces the manual pages, one HTML file, the PDF and an MCDE information library. The guide follows the structure of The NetBSD Guide, describes Makronix 0.99.10 (Camouflage), and has its own chapters for MCDE, the Information Manager and the display. The forms are installed by the release: /usr/share/doc/makronix/makronix-guide.html /usr/share/doc/makronix/makronix-guide.pdf /usr/share/doc/makronix/infolib/makronix.dti/ (base-sys-share) /usr/share/man/man7/makronix-guide*.7 (man-reference-man) /etc/dt/config/Xsession.d/0000makronix (etc-sys-etc) /etc/dt/infolib/en_US.UTF-8/makronix.dti (symlink) The information library is built with MCDE's dtdocbook2infolib from a small Lua writer for the CDE DocBook SGML dialect; tools/test-tools.sh runs docs/guide/check.sh on the installed copies and proves that a missing manual page falls red.
112 lines
5.0 KiB
XML
112 lines
5.0 KiB
XML
<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->
|
|
<chapter id="upgrade">
|
|
<title>Upgrading Makronix</title>
|
|
|
|
<para>An upgrade replaces the base system and keeps your accounts, your
|
|
files and the packages you installed. There are two ways to do it: from a
|
|
new installation medium, or from a running system with
|
|
<citerefentry><refentrytitle>sysupgrade</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
|
|
Both end with the same steps: the sets are unpacked, the configuration is
|
|
merged, and the machine is rebooted.</para>
|
|
|
|
<sect1 id="upgrade-medium">
|
|
<title>From the medium</title>
|
|
|
|
<para>Start the new medium and choose <quote>Upgrade NetBSD on a hard
|
|
disk</quote> in <command>sysinst</command>. The installer asks for the
|
|
disk and the root partition, unpacks the new sets over the old system
|
|
and leaves <filename>/etc</filename> and <filename>/home</filename>
|
|
alone. The <quote>makronix</quote> set is part of the upgrade; choose it
|
|
when the installer offers the sets.</para>
|
|
|
|
<para>After the reboot, run the two NetBSD tools that bring the
|
|
configuration up to date:</para>
|
|
|
|
<screen># postinstall -s /usr/src/etc fix
|
|
# etcupdate -s /usr/src/etc</screen>
|
|
|
|
<para><citerefentry><refentrytitle>postinstall</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
|
repairs the files that NetBSD knows how to merge (the mail
|
|
configuration, the device files, the fonts); <citerefentry><refentrytitle>etcupdate</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
|
merges the rest and leaves its conflicts for you to resolve. Read
|
|
<filename>/etc/rc.conf</filename> afterwards: a new release can add a
|
|
service or rename a variable, and the old file is kept as
|
|
<filename>/etc/rc.conf.old</filename> when it is replaced.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="upgrade-sysupgrade">
|
|
<title>With sysupgrade</title>
|
|
|
|
<para><command>sysupgrade</command> does the same work from the running
|
|
system. It fetches the sets from a directory, a <filename>file://</filename>
|
|
address or an <filename>https://</filename> address, unpacks them and
|
|
updates the kernel. The address is the first line of
|
|
<filename>/etc/makronix/update</filename>:</para>
|
|
|
|
<screen># cat /etc/makronix/update
|
|
https://example.invalid/makronix/0.99.10/amd64
|
|
# sysupgrade auto https://example.invalid/makronix/0.99.10/amd64</screen>
|
|
|
|
<para>After <command>sysupgrade</command>, run <command>postinstall</command>
|
|
and <command>etcupdate</command> as above and reboot. The MCDE
|
|
<application>System Settings</application> has the same operation as a
|
|
dialog: it reads the source from <filename>/etc/makronix/update</filename>,
|
|
runs <command>sysupgrade</command> for the base system and then
|
|
<command>pkg_add -uu</command> for the packages.</para>
|
|
|
|
<para><emphasis>Trust:</emphasis> 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. Use a source you control, and keep a copy of the
|
|
previous release until the new one has started.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="upgrade-packages">
|
|
<title>The packages</title>
|
|
|
|
<para>Packages from pkgsrc are updated with the package tools, not with
|
|
the base system:</para>
|
|
|
|
<screen># pkg_add -uu
|
|
# pkg_admin rebuild</screen>
|
|
|
|
<para>The packages of the <quote>makronix</quote> set are not in the
|
|
package database: the installer unpacks them as part of the set. They
|
|
change with a Makronix release, which is one reason to upgrade the whole
|
|
system rather than a single file.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="upgrade-encrypted">
|
|
<title>An encrypted system</title>
|
|
|
|
<para>On an encrypted system the kernel the machine boots is the copy on
|
|
the small unencrypted partition, not <filename>/netbsd</filename> in the
|
|
encrypted root. After an upgrade, copy the new kernel and the matching
|
|
<filename>cgdroot.kmod</filename> to that partition:</para>
|
|
|
|
<screen># mount /cgdboot
|
|
# cp /netbsd /cgdboot/netbsd
|
|
# cp /path/from/the/release/cgdroot.kmod /cgdboot/
|
|
# umount /cgdboot</screen>
|
|
|
|
<para>The release notes name the exact path of
|
|
<filename>cgdroot.kmod</filename>; it is part of the kernel set of the
|
|
new release. Keep the old kernel as
|
|
<filename>/cgdboot/netbsd.old</filename> so that the loader can start it
|
|
if the new one fails.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="upgrade-recovery">
|
|
<title>If the upgrade fails</title>
|
|
|
|
<para>A failed upgrade is not a lost machine. Start the old medium,
|
|
mount the root partition and read <filename>/var/log/messages</filename>;
|
|
the installer has left the old configuration in
|
|
<filename>/etc/rc.conf.old</filename> and the old kernel in
|
|
<filename>/netbsd.old</filename>. The loader's menu can start
|
|
<filename>netbsd.old</filename> when the new kernel does not boot. With
|
|
the source set installed, the system can be rebuilt in place
|
|
(<xref linkend="building"/>).</para>
|
|
</sect1>
|
|
</chapter>
|