Some user-visible changes are documented here. Version numbers have three
major.minor.patch, with the following semantics:
majorfor a release which contains particularly significant new features, enhancements and/or reworkings, whether or not upgrading to the release will require changes to user consfigs (though usually it will);
minorfor a release which does not satisfy the requirements for incrementing
major, but where there are changes that could require changes in user consfigs, except very obscure such consfigs; and
we increment only
patchfor a release which includes no changes that we think could require changes in user consfigs.
Note that the notion of consfig-breaking changes is more than just strict API breaks, but also changes in behaviour which will likely require review by sysadmins using Consfigurator to maintain their systems.
In summary, you should always be able to upgrade to a release which only
patch, but if either of the other two components have changed,
you should review this document and see if your consfig needs updating.
New reader macros
#~s///for shell- and Perl-style regular expression matching and replacement.
New reader macro
#>>EOF>>which is like
#>EOF>except that it skips over the remainder of the current line and its newline. This is more like how heredocs work in other languages.
Support for indented heredocs, where the indentation of the lines of the heredoc is stripped. This mode is activated by prepending a tilde to the heredoc terminator. For example:
(foo "argument 1" #>>~EOF>> My line 1. My line 2. EOF)
The function receives
"My line 1.\nMy line 2."
This is a minor breaking change because heredoc terminators may no longer begin with a tilde.
New manual section “Reader macros” discussing Consfigurator’s named readtable, including some usage reservations for the sake of future extension.
New tutorial, “Defining new properties”.
Extract docstrings and use them to generate API references in the manual. It should now be possible to know what properties are available for your use without having to read the source of properties modules.
New Emacs major mode,
consfigurator-lisp-mode. This takes care of informing Emacs that parts of the buffer are CL-INTERPOL, CL-HEREDOC and our
#~s///strings, fixing SLIME’s C-c C-c in certain cases.
APT properties: add
non-free-firmwaresection to generated sources lists. On Debian bullseye and older this will cause apt updates to emit harmless warnings.
LXC:USER-CONTAINER and LXC:USER-CONTAINER-FOR are now unapplicable.
Add LXC:USER-CONTAINER-STOPPED and FILE:EMPTY-DIRECTORY-DOES-NOT-EXIST.
APT properties now cache what packages have been explicitly installed and removed this deployment. This should significantly speed up many deployments. User properties which install or remove packages by calling apt-get(8) or dpkg(1) directly might inadvertedly render the lists of properties installed and removed invalid. Such properties should be changed to call or apply the new APT:KNOWN-INSTALLED-REMOVED-PACKAGES-RESET property to invalidate the cache.
Fix a bug in FILE:SYMLINKED that meant that with at least GNU ln(1), the property would fail to overwrite existing symbolic links in some cases.
Fix a bug in FILE:DOES-NOT-EXIST which meant that it did nothing if only some of the files that should not exist needed to be deleted.
When recovering from a failed debootstrap, instead of just recursively deleting the target directory, we now call EMPTY-REMOTE-DIRECTORY, to empty it, instead. This is better when the target directory is a mount point.
PROPAPPLY now signals an error if asked to apply a property that has neither
:HOSTATTRSsubroutines. This is primarily intended to catch cases where the property is defined in a
.lispfile that you haven’t yet added to your consfig’s
APT:PROXY is now unapplicable.
APT:INSTALLED, APT:INSTALLED-MINIMALLY and APT:REMOVED now always execute apt-get(8). Previously they tried to determine whether the packages were already installed or removed by parsing output from apt-cache(8), but the implementation sometimes gave the wrong answer.
API change: DISK:HOST-VOLUMES-CREATED has been removed in favour of new properties DISK:FIRST-DISK-INSTALLED-FOR and DISK:VOLUMES-INSTALLED-FOR.
API change: INSTALLED:CHROOT-INSTALLED-TO-VOLUMES-FOR has been renamed to INSTALLER:FILES-INSTALLED-TO-VOLUMES-FOR, and will now bootstrap a root filesystem directly to the volumes if not supplied a chroot. The CHROOT parameter has become a keyword parameter, and the required parameters have changed from
(HOST CHROOT VOLUMES)to
(OPTIONS HOST VOLUMES)for consistency with other property lambda lists.
The new property also includes a bugfix: we now rebuild the initramfs after populating the crypttab.
API change: DISK:WITH-OPENED-VOLUMES now includes volumes that were already open, and their parents, in the connattrs.
DISK:LUKS-CONTAINER: Add support for passing arbitrary options to cryptsetup(8) when creating volumes, such as
DISK:WITH-OPENED-VOLUMES, INSTALLER:FILES-INSTALLED-TO-VOLUMES-FOR and DISK:VOLUMES-INSTALLED-FOR support a new
LEAVE-OPENargument to request that opened volumes are not closed. This is useful for inspecting the result of an installation, but must be used with caution: the next deployment will assume the volumes have been manually closed.
Wrap calls to OSICAT:USER-INFO with a fallback to use getent(1). This fixes cases where getpwnam(3) and getpwuid(3) can fail to load required NSS modules because we have chrooted or similar.
Consfigurator now converts some of its internal shell script snippets to single lines before executing them, which improves debug output and the readability of process names visible to remote commands like ps(1).
Add PROG-CHANGES, USER:GROUP-EXISTS and INSTALLER:WITH-CLEANLY-INSTALLED-ONCE.
ESEQPROPS-UNTIL can now be used with any condition class, not just those subtyping FAILED-CHANGE.
REBOOT:AT-END now falls back to shell
sleep-based scheduling when shutdown(8) cannot schedule a reboot for the future.
Fix a few bugs in FILE:CONTAINS-INI-SETTINGS.
Fix FSTAB:HAS-ENTRIES-FOR-OPENED-VOLUMES for FAT32 filesystems.
Some enhancements to OS combinators.
New data source to fetch passphrases from a pass(1) data store, thanks to David Bremner.