aboutsummaryrefslogtreecommitdiff
path: root/src/image.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.lisp')
-rw-r--r--src/image.lisp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/image.lisp b/src/image.lisp
index e3fb651..681c9c9 100644
--- a/src/image.lisp
+++ b/src/image.lisp
@@ -85,13 +85,17 @@ FORMS.
PREREQUEST will be evaluated before the grandchild calls fork(2) to establish
its own infrastructure for subsequent uses of this macro, and REQUEST after.
Thus, PREREQUEST must not start up any threads."
- (flet ((wrap (form)
+ (flet ((wrap (&rest forms)
``(let ((*host* ,*host*)
(*connection* ,*connection*)
(*no-data-sources* t)
(*consfigurator-debug-level* ,*consfigurator-debug-level*))
- ,,form)))
- `(with-fork-request ,(wrap prerequest) ,(wrap request) (,out ,err ,exit)
+ ,,@forms)))
+ `(with-fork-request
+ ,(wrap '`(posix-login-environment
+ ,(get-connattr :remote-user) ,(get-connattr :remote-home))
+ prerequest)
+ ,(wrap request) (,out ,err ,exit)
,@forms)))
(defun dump-consfigurator (filename form)