Files
lotherk 9558ad4f07 www: the pages in the voice of docs/reference/website-voice.txt, license.html, new pictures
license.html carries the CNCL and the table of docs/LICENSES.md and is linked
from every page and the guide's template; shot-bar and shot-dtchat are used
by desktop.html and index.html (every href/src of www/*.html resolves).  The
guide no longer announces a photo editor (dtphoto exists).
2026-11-17 16:39:44 +00:00

92 lines
3.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="How a Makronix system is upgraded to a newer release with one command.">
<title>Makronix: Upgrade</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="window">
<div class="titlebar">Makronix &ndash; Upgrade</div>
<div class="menubar">
<a href="index.html">Home</a>
<a href="features.html">Features</a>
<a href="download.html">Download</a>
<a href="install.html">Install</a>
<a href="upgrade.html" class="here">Upgrade</a>
<a href="desktop.html">Desktop</a>
<a href="guide.html">Guide</a>
<a href="source.html">Source</a>
<a href="license.html">License</a>
</div>
<div class="content">
<h1>Upgrading Makronix</h1>
<p>One command takes an installed Makronix to a newer release. It tells you
what is running and what comes, and asks. Then it upgrades the system and its
kernel and brings the files in <code>/etc</code> up to date, and you restart.
Your users, your settings and your programs stay.</p>
<div class="note">The command is part of the 0.99.10 snapshot and has been run
on the build machine without changing anything. Do not use it on a machine you need.</div>
<h2>The command</h2>
<pre>
mxupgrade file:///mnt/amd64
</pre>
<p>As the administrator. The argument says where the new release is:</p>
<ul>
<li>a <strong>directory</strong> or a <code>file://</code> address: a mounted
CD, DVD or USB stick, or the release directory of a build. The directory holds
<code>binary/sets</code> and <code>binary/kernel</code>, as the media do;</li>
<li>a <strong>web address</strong> (<code>https://</code>, <code>http://</code>,
<code>ftp://</code>) or <code>ssh://</code>.</li>
</ul>
<p>Without an argument it takes <code>RELEASEDIR</code> from
<code>/etc/sysupgrade.conf</code>. <code>mxupgrade -n</code> only says what
would happen. For example, for a build directory (the line "now" is the running system's):</p>
<pre>
Makronix upgrade
now: NetBSD 11.99.9
from: /mnt/amd64
release: Makronix 0.99.10
sets: base comp etc games makronix man misc modules text xbase ...
then: kernel, sets, etcupdate, postinstall (and /cgdboot if the system is encrypted)
</pre>
<h2>What it does</h2>
<ol>
<li>Takes the sets and the kernel from the release.</li>
<li>Installs the kernel, the modules and every set that is installed, the
<code>makronix</code> set (the desktop and its programs) among them.</li>
<li>Runs <code>etcupdate</code>: your changes in <code>/etc</code> are kept, new
files come in, and what needs your decision is asked.</li>
<li>Runs <code>postinstall</code> and removes what the new release dropped.</li>
<li>On an encrypted disk it copies the new kernel and <code>cgdroot.kmod</code> to
the small boot partition, because the boot loader reads them from there before
the disk is unlocked, and keeps the old kernel as <code>netbsd.old</code>.</li>
</ol>
<p>Then <code>shutdown -r now</code>.</p>
<h2>Where it comes from</h2>
<p>The work is done by <code>sysupgrade</code>, the upgrade tool of the NetBSD
project, with <code>etcupdate</code> and <code>postinstall</code> from NetBSD;
<code>mxupgrade</code> turns the address into what sysupgrade understands,
says beforehand what comes and does the step for encrypted disks. The
installer writes <code>/etc/sysupgrade.conf</code> for the machine.</p>
<h2>The programs</h2>
<p>The programs that came from pkgsrc, Firefox and the rest, are updated with
<code>pkg_add -u</code>. The programs of the <code>makronix</code> set come with
the release.</p>
</div>
<div class="footer">Makronix is based on <a href="https://www.NetBSD.org/">NetBSD</a>.
This site: makronix.hiddenbox.org</div>
</div>
</body>
</html>