aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* implement updating the newly installed system's fstabSean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* drop useless use of STRCATSean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* pass -x to rsync(1) when updating volumes from chrootSean Whitton2021-04-30
| | | | | | Otherwise it will try to copy in /dev, /proc etc. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* reflect *MOUNT-BELOW* in OPENED-FILESYSTEM valuesSean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* pass -v to kpartx(1) when deleting mappingsSean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* MOUNT:UNMOUNTED-BELOW: stop calling 'mount --make-rslave'Sean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* chroot connections: set up bind mounts and virtual filesystemsSean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* one package for :CHROOT, :CHROOT.FORK and :CHROOT.SHELLSean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* MOUNT:UNMOUNTED-BELOW: fix sorting of mount pointsSean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* move chroot->volumes operation into a new properties packageSean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* mention WITH-THESE-OPEN-VOLUMES in a docstringSean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add TODO about converting slots to connattrsSean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add :OPENED-VOLUMES connattrSean Whitton2021-04-30
| | | | | | | hostattrs don't make sense for this, as it should be possible to gather all hostattrs without examining the host. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add connattrsSean Whitton2021-04-30
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* CONTINUE-DEPLOY* connections: push a new connection objectSean Whitton2021-04-30
| | | | | | This is cleaner than resetting certain slot values. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* more specific type for VOLUME-CONTENTS of PARTITIONED-VOLUMESean Whitton2021-04-29
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* minor style tweaksSean Whitton2021-04-29
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* define CREATE-VOLUME for opened volumesSean Whitton2021-04-29
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add DISK:HOST-VOLUMES-CREATEDSean Whitton2021-04-29
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add CHROOT:DEPLOYS and CHROOT:DEPLOYS-THESESean Whitton2021-04-26
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* define UNION-PROPSPEC-INTO-HOST for null second argumentSean Whitton2021-04-26
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* capture child stdout in case *STANDARD-OUTPUT* has been reboundSean Whitton2021-04-26
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* drop a trailing period in property descriptionSean Whitton2021-04-26
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* also sync in WITH-OPEN-VOLUMESSean Whitton2021-04-26
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* stop binding *MOUNT-BELOW* when closing volumesSean Whitton2021-04-26
| | | | | | We pass the device file to umount(1), so this is not needed. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add DISK:VOLUMES and make DISK:HAS-VOLUMES into a macroSean Whitton2021-04-26
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add DISK:{EXTRA-SPACE,CACHES-CLEANED,RAW-IMAGE-BUILT-FOR}Sean Whitton2021-04-26
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* sync when closing volumes in WITH-THESE-OPEN-VOLUMES tooSean Whitton2021-04-26
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* tweak docstringSean Whitton2021-04-26
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* when creating partition tables, don't assume VOLUME-SIZE is boundSean Whitton2021-04-26
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* export UNION-PROPSPEC-INTO-HOST and HOST-PROPSPECSean Whitton2021-04-24
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* CHROOT:OS-BOOTSTRAPPED-FOR: accept additional propertiesSean Whitton2021-04-24
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* postpone preprocessing the child host for the chroot deploySean Whitton2021-04-24
| | | | | | | | | Preprocess the host later so that we can do things like appending to its propspec. Properties which will pass host values on to CHROOT:OS-BOOTSTRAPPED-FOR can create private preprocessed copies of host values for the purpose of looking at hostattrs. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* declare IGNORABLE for all vars in :DESC and :HOSTATTRS subroutinesSean Whitton2021-04-24
| | | | | | These subroutines very often use only some of the property's arguments. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* refactor APPLY-AND-PRINT to print output even when unhandled errorSean Whitton2021-04-24
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* sync(1) before closing newly created volumesSean Whitton2021-04-24
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add APT:CACHE-CLEANEDSean Whitton2021-04-24
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* factor out CHROOT-PATHNAMESean Whitton2021-04-22
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* reflow some args and merge method descriptions into DEFGENERIC formsSean Whitton2021-04-22
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* reflowSean Whitton2021-04-21
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add COPY-VOLUME-AND-CONTENTSSean Whitton2021-04-20
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* drop duplicate DEFGENERICSean Whitton2021-04-20
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* drop DISK:VOLUME-UUIDSean Whitton2021-04-18
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add some fstab functions and propertiesSean Whitton2021-04-18
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add DISK:SUBVOLUMES-OF-TYPE & DISK:MOUNT-OPTIONS, and update exportsSean Whitton2021-04-18
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* :SSH connection: fix broken ssh -fNSean Whitton2021-04-18
| | | | | | | | | - Previous command did not include the username. - In some scenarios ssh -fN does not exit, and we can achieve our purpose of confirming that we can authenticate just by calling the ":" builtin. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add WITH-LOCAL-PASSWORDLESS-SUDO-CONNECTIONSean Whitton2021-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* avoid quoting self-evaluating forms when reconstructing propspecsSean Whitton2021-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* include error when reporting INVALID-OR-AMBIGUOUS-PROPSPECSean Whitton2021-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* use ~S not ~A in reporting INVALID-OR-AMBIGUOUS-PROPSPECSean Whitton2021-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>