Makronix – Upgrade

Upgrading Makronix

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 /etc up to date, and you restart. Your users, your settings and your programs stay.

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.

The command

mxupgrade file:///mnt/amd64

As the administrator. The argument says where the new release is:

Without an argument it takes RELEASEDIR from /etc/sysupgrade.conf. mxupgrade -n only says what would happen. For example, for a build directory (the line "now" is the running system's):

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)

What it does

  1. Takes the sets and the kernel from the release.
  2. Installs the kernel, the modules and every set that is installed, the makronix set (the desktop and its programs) among them.
  3. Runs etcupdate: your changes in /etc are kept, new files come in, and what needs your decision is asked.
  4. Runs postinstall and removes what the new release dropped.
  5. On an encrypted disk it copies the new kernel and cgdroot.kmod to the small boot partition, because the boot loader reads them from there before the disk is unlocked, and keeps the old kernel as netbsd.old.

Then shutdown -r now.

Where it comes from

The work is done by sysupgrade, the upgrade tool of the NetBSD project, with etcupdate and postinstall from NetBSD; mxupgrade turns the address into what sysupgrade understands, says beforehand what comes and does the step for encrypted disks. The installer writes /etc/sysupgrade.conf for the machine.

The programs

The programs that came from pkgsrc, Firefox and the rest, are updated with pkg_add -u. The programs of the makronix set come with the release.