aboutsummaryrefslogtreecommitdiff
path: root/src/property/chroot.lisp
Commit message (Collapse)AuthorAge
* update copyright noticesSean Whitton2022-04-29
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* move OS::ARCHITECTURE slot from OS:LINUX to OS:DEBIANLIKESean Whitton2022-04-29
| | | | | | | | | | | | | | | | We already use this information in the sense of a distribution architecture rather than a kernel architecture, and the latter are differently grained. We might later want to have slots for both. Make OS:SUPPORTS-ARCH-P take OS objects as this simplifies existing usage. Restore the ORIGINAL-OS parameter to INSTALLER:CLEANLY-INSTALLED-ONCE. It was previously replaced in 446b8f4a8ef78cb4605cfb551255bb455be411f0. CHROOT::%OS-BOOTSTRAPPER-INSTALLED does not need the original host's architecture in most cases, and accepting an arbitrary propapp means we don't force the use of PACKAGE:INSTALLED. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename APT:MIRROR to APT:MIRRORS, use &rest and rename the hostattrSean Whitton2022-04-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* replace some Scheme-style namesSean Whitton2022-04-01
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* replace uses of CALL-WITH-OS & drop the functionSean Whitton2022-03-11
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add "local" and "remote" to the names of some exported symbolsSean Whitton2022-03-09
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename PLIST-TO-CMD-ARGS -> PLIST->LONG-OPTIONSSean Whitton2022-03-09
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* install system deps by searching for package managers on PATHSean Whitton2021-10-23
| | | | | | | | | | | | | | | | With this change we handle the situation in which we don't know the OS of a host on which we need to install system packages more cleanly than before. Also rely on the new PACKAGE:INSTALLED to install the OS bootstrapper in INSTALLER:CLEANLY-INSTALLED-ONCE. This allows us to simplify usage of the property by replacing the ORIGINAL-OS argument with ORIGINAL-OS-ARCHITECTURE. Making this change does mean that we now have two ways to specify the different names a package has on different OSs: (i) something like OS:ETYPECASE where each branch applies a property which invokes an OS-specific package manager; and (ii) the plists supplied to PACKAGE:INSTALLED. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* factor out REMOTE-EXECUTABLE-FINDSean Whitton2021-10-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* CHROOT:DEPLOYS-THESE: accept a string for HOST parameterSean Whitton2021-07-24
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add idea about using arch-test(1)Sean Whitton2021-07-12
| | | | 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>
* CHROOT::%DEBOOTSTRAPPED: fix :CHECK subroutine's second branchSean Whitton2021-07-06
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* CHROOT:OS-BOOTSTRAPPED{,-FOR}: make unapplicableSean Whitton2021-06-08
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* CHROOT::%DEBOOTSTRAPPED: improve choosing the apt proxy and mirrorSean Whitton2021-06-07
| | | | | | | | | - Look at the chroot host's hostattrs, not the parent host, as perhaps the parent's apt mirror does not carry the chroot host's suite, &c. - Allow overriding this using the chroot bootstrapper options. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* CHROOT:OS-BOOTSTRAPPED-FOR: fix descriptionSean Whitton2021-05-29
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add optional HOST arg to some accessors for hostattrsSean Whitton2021-05-29
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* better test for completed debootstrapSean Whitton2021-05-28
| | | | | | The root might exist already if it's a mount point. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add CONSFIGURATOR.PROPERTY.CONTAINERSean Whitton2021-05-24
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* install qemu-user-static alongside debootstrapSean Whitton2021-05-06
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* drop use of qemu-debootstrap(1)Sean Whitton2021-05-06
| | | | | | | It's deprecated in favour of debootstrap(1) which can now transparently handle foreign architectures. 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>
* 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>
* CHROOT:OS-BOOTSTRAPPED-FOR: preprocess HOST argumentSean Whitton2021-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add CHROOT:OS-BOOTSTRAPPED-FORSean Whitton2021-04-14
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename and use DELETE-REMOTE-TREE->DELETE-REMOTE-TREESSean Whitton2021-04-07
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* factor out and export CHROOT:MAKE-CHILD-HOST-FOR-CHROOT-DEPLOYSean Whitton2021-04-06
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* OS:TYPECASE->OS:ETYPECASE & OS:HOST-TYPECASE->OS:HOST-ETYPECASESean Whitton2021-04-01
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* untabifySean Whitton2021-03-22
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* simplify SERVICE:NO-SERVICES & add SERVICE:WITHOUT-STARTING-SERVICESSean Whitton2021-03-21
| | | | | | For the purposes of CHROOT:OS-BOOTSTRAPPED, this should be more robust. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* tweak description of CHROOT:OS-BOOTSTRAPPEDSean Whitton2021-03-21
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add descriptions to some chroot propertiesSean Whitton2021-03-21
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* fix OS types DEBIAN -> DEBIANLIKESean Whitton2021-03-21
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add and use :CONSFIGURATOR named readtableSean Whitton2021-03-20
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* implement debootstrapping chrootsSean Whitton2021-03-19
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* CHROOT:OS-BOOTSTRAPPED: use MAKE-CHILD-HOSTSean Whitton2021-03-19
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* CHROOT:OS-BOOTSTRAPPED: make OPTIONS always a plistSean Whitton2021-03-19
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* avoid using ONCE-ONLY inside DEFPROPSPECSean Whitton2021-03-19
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* write out the basic structure of properties for debootstrappingSean Whitton2021-03-18
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* CHROOT:OS-BOOTSTRAPPED: add IGNORE declarationSean Whitton2021-03-18
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* define %OS-BOOTSTRAPPED before OS-DEBOOTSTRAPPED for PROPSSean Whitton2021-03-18
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* update a call to MAKE-HOSTSean Whitton2021-03-15
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* start figuring out representation of host operating systemsSean Whitton2021-03-04
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* initial ideas for structure of chroot-bootstrapping propertiesSean Whitton2021-03-04
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>