aboutsummaryrefslogtreecommitdiff
path: root/src/deployment.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-04-30 16:53:02 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-04-30 17:56:41 -0700
commit691c81810e647ef7d780f4f3546ee8856f777b07 (patch)
tree221a5e43193e6ddaae5fdd86b85ea8373486db10 /src/deployment.lisp
parente8df647b13c130cc038eef76acf02caabe346b7e (diff)
downloadconsfigurator-691c81810e647ef7d780f4f3546ee8856f777b07.tar.gz
chroot connections: set up bind mounts and virtual filesystems
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/deployment.lisp')
-rw-r--r--src/deployment.lisp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/deployment.lisp b/src/deployment.lisp
index 7d1af93..104a810 100644
--- a/src/deployment.lisp
+++ b/src/deployment.lisp
@@ -38,9 +38,8 @@ preprocessed."
(multiple-value-bind (*connection* return)
(apply #'establish-connection type remaining args)
(if *connection*
- (prog1 (if remaining
- (connect remaining)
- (apply-*host*-propspec))
+ (unwind-protect-in-parent
+ (if remaining (connect remaining) (apply-*host*-propspec))
(connection-teardown *connection*))
return)))))
(let ((*host* (preprocess-host host)))