From b8fe83f3f6b2f89d60b26201dd3e3ffdc7210bc1 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 19 Mar 2021 13:15:54 -0700 Subject: add a way for chroots, containers etc. to get at parent hostattrs Signed-off-by: Sean Whitton --- src/host.lisp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/host.lisp') 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) -- cgit v1.2.3