diff options
Diffstat (limited to 'src/host.lisp')
-rw-r--r-- | src/host.lisp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/host.lisp b/src/host.lisp index cbc756d..f4f9ec2 100644 --- a/src/host.lisp +++ b/src/host.lisp @@ -70,6 +70,14 @@ values higher up the call stack.")) (make-instance 'unpreprocessed-host :hostattrs hostattrs :propspec propspec)) +(defun make-child-host (&key hostattrs propspec) + "Make a host object to represent a chroot, container or the like. +Called by properties which set up such subhosts, like CHROOT:OS-BOOTSTRAPPED." + (make-instance + 'unpreprocessed-host + :propspec propspec + :hostattrs (list* :parent-hostattrs (hostattrs *host*) hostattrs))) + (defmethod print-object ((host host) stream) (format stream "#.~S" `(make-instance ',(type-of host) |