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
mxupgrade file:///mnt/amd64
As the administrator. The argument says where the new release is:
- a directory or a
file://address: a mounted CD, DVD or USB stick, or the release directory of a build. The directory holdsbinary/setsandbinary/kernel, as the media do; - a web address (
https://,http://,ftp://) orssh://.
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
- Takes the sets and the kernel from the release.
- Installs the kernel, the modules and every set that is installed, the
makronixset (the desktop and its programs) among them. - Runs
etcupdate: your changes in/etcare kept, new files come in, and what needs your decision is asked. - Runs
postinstalland removes what the new release dropped. - On an encrypted disk it copies the new kernel and
cgdroot.kmodto the small boot partition, because the boot loader reads them from there before the disk is unlocked, and keeps the old kernel asnetbsd.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.