aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* | add idea about using arch-test(1)Sean Whitton2021-07-12
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | POSTFIX:{MAIN-CONFIGURED,MAPPED-FILE}: fix returning :NO-CHANGESean Whitton2021-07-12
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | FILE:UPDATE-UNIX-TABLE: replace sorting algorithm and refactorSean Whitton2021-07-12
| | | | | | | | | | | | | | | | | | For /etc/fstab, new code should continue to handle ordinary block device mounts and swap files correctly, and also some cases the old code got wrong: when the SOURCEth and TARGETth fields are both paths, but the SOURCEth field is under a filesystem which is the TARGETth field of another line. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | factor out MOUNTPOINTPSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | INSTALLER:CLEANLY-INSTALLED-ONCE: error when new-os DEST existsSean Whitton2021-07-10
| | | | | | | | | | | | This should not happen. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | INSTALLER:CLEANLY-INSTALLED-ONCE: handle /run using 'mount --move'Sean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | INSTALLER:CLEANLY-INSTALLED-ONCE: preserve /sysSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | LINES: split on CRLF tooSean Whitton2021-07-10
| | | | | | | | | | | | Prompted by apt-get(8) output containing some lines ending CRLF. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | FILE:UPDATE-UNIX-TABLE end sort: handle comments and blank linesSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | move /run out from MOUNT:*STANDARD-LINUX-VFS*Sean Whitton2021-07-10
| | | | | | | | | | | | Bind-mounting /run is really a chroot connection-specific operation. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | FILE:UPDATE-UNIX-TABLE: add sorting of lines at endSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | add INSTALLER:BOOTLOADERS-INSTALLED & example usageSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | add SWAP:HAS-SWAP-FILESean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | INSTALLER:CLEANLY-INSTALLED-ONCE: change the fstab exampleSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | INSTALLER:CLEANLY-INSTALLED-ONCE: handle EFI system partitionSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | fstab properties: fix default mount optionsSean Whitton2021-07-10
| | | | | | | | | | | | See fstab(5). Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | CMD:SINGLE: use MRUN not RUNSean Whitton2021-07-10
| | | | | | | | | | | | | | | | We are not doing anything with the output, so there is no particular need to use RUN, and when the caller passes :INFORM, they probably want the user to see both stdout and stderr. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | add ON-APPLY-CHANGESean Whitton2021-07-10
| | | | | | | | | | | | Also see b24ff2c7365ee8d42063cbfa06ece3ef591d9a35. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | ON-CHANGE*: factor out (CAR PROPAPP)Sean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | ON-CHANGE: use ESEQPROPS to sequence the secondary propappsSean Whitton2021-07-10
| | | | | | | | | | | | | | This means that we get APPLY-AND-PRINT's output when there are multiple secondary propapps. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | (remove-if #'null ...) -> (remove nil ...) & similarly for DELETE-IFSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | chroot connections: unmount lazilySean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | DEPLOYS-THESE: accept a string for HOST parameterSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | add note about name of CMD:SINGLESean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | invoke the SKIP-PROPERTY restart established right after the handlerSean Whitton2021-07-10
| | | | | | | | | | | | This should better preserve the semantics of the sequencing combinators. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | SILENT-SEQPROPS: actually establish SKIP-PROPERTY restartSean Whitton2021-07-10
| | | | | | | | | | | | Also see f08989da7485b7bb165caa536eabd415a9f3ac7d. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | APPLY-AND-PRINT: avoid returning 'FAILED-CHANGESean Whitton2021-07-10
| | | | | | | | | | | | The value is not meant to be used outside of combinator.lisp. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | APPLY-AND-PRINT: ensure print "failed" if there is a non-local exitSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | replace live-build(7) properties with DISK:DEBIAN-LIVE-ISO-BUILTSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | DISK::WITH-OPEN-VOLUMES: drop unneeded use of ONCE-ONLYSean Whitton2021-07-10
| | | | | | | | | | | | Was causing a warning in the case where MOUNT-BELOW was not supplied. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | factor out DISK::IMAGE-CHROOTSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | FILE:DATA-CACHE-PURGED: fix looking up the cache locationSean Whitton2021-07-10
| | | | | | | | | | | | Previously we were looking it up at :HOSTATTRS time, which failed. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | FILE:EXISTS-WITH-CONTENT: add :DESC subroutineSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | NETWORK:STATIC: add NETMASK argumentSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | make it possible to distinguish SKIP-PROPERTY restarts in debuggerSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | APPLY-AND-PRINT: fix clearing the bufferSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | capture fork child stderr & include in call to FAILED-CHANGESean Whitton2021-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | This mirrors what we do with stderr from remote Lisp images. Before this change, when a remote Lisp image forks, the child's stderr is sent to the parent's stderr. But if the parent exits successfully its stderr is discarded (see the :SBCL connection). So if the child failed but the FAILED-CHANGE was handled, perhaps because the fork occurs within SEQPROPS, the user has no way to get at the child's error output. After this change, the error output should be printed to stdout by WITH-SKIP-FAILED-CHANGES. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | signal SKIPPED-PROPERTIES & factor out interpreting exit codesSean Whitton2021-07-10
| | | | | | | | | | | | | | | | | | | | | | | | Unconditionally signalling FAILED-CHANGE does not make sense because perhaps the type of condition C is not a subtype of SIMPLE-CONDITION. Moreover, when we invoke the SKIP-PROPERTY restart we do not actually pass the condition. For simplicity, and since all we need is notification that a SKIP-PROPERTY restart was invoked, instead define and signal a special-purpose condition. Additionally, use an exit code to pass the signal between Lisp images. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | add Emacs indentation hint for WITH-UNAPPLYSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | HOSTNAME::DOMAIN: fix handling hostnames without any '.'Sean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | add INSTALLER:CLEANLY-INSTALLED-ONCE & some utilsSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | make OS:LINUX applicable to hosts & add to OS:SUPPORTS-ARCH-PSean Whitton2021-07-10
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | make installing OS bootstrapper for Debian more flexibleSean Whitton2021-07-07
| | | | | | | | | | | | | | | | | | - Accept debootstrap(8) already on PATH -- perhaps manually installed -- on systems where Consfigurator doesn't know how to install debootstrap. - Don't require qemu-user-static when the target arch is natively executable. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | :SBCL: drop unneeded IGNORING-HOSTATTRSSean Whitton2021-07-07
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | :SBCL: don't assume that *HOST*'s OS applies to intermediate hopsSean Whitton2021-07-07
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | :SBCL: fix looking for sbcl(1) already on PATHSean Whitton2021-07-07
| | | | | | | | | | | | | | | | | | | | The old :CHECK subroutine was meant to enable successfully applying SBCL-AVAILABLE to arbitrary hosts where sbcl(1) is already on PATH, but that does not work because the use of OS:ETYPECASE signals an error at :HOSTATTRS time if *HOST*'s OS is not known to be a subtype of OS:DEBIANLIKE. So move the check for sbcl(1) on PATH outside of any property application. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | UNWIND-PROTECT-IN-PARENT: drop pointless resignalSean Whitton2021-07-06
| | | | | | | | | | | | The handler declines to handle the signal and so it continues to propagate. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | add AT-END, REBOOT:REBOOTED-AT-ENDSean Whitton2021-07-06
| | | | | | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | RUN/MRUN: drop the trailing slash when populating HOMESean Whitton2021-07-06
| | | | | | | | | | | | This is the usual convention for that environment variable. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* | WITH-FLAGFILE: 'mkdir -p' flag file's directory & 'rm -f' on unapplySean Whitton2021-07-06
| | | | | | | | | | | | | | Avoids a failure if the flag file's directory does not exist, and enables unapplying the property before it has ever been applied to a host. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>