aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-12 08:48:17 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-13 12:51:59 -0700
commit942000162e588697cab73f339a87bf6b598f221b (patch)
tree03ef9fb52aa9f21a1f07b3859d64d3d3935f1a74
parent761dea12283760959e2f3f81d5cf044bb0a5e615 (diff)
downloadconsfigurator-942000162e588697cab73f339a87bf6b598f221b.tar.gz
update TODOs
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r--src/connection/chroot/fork.lisp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/connection/chroot/fork.lisp b/src/connection/chroot/fork.lisp
index db50229..626c1af 100644
--- a/src/connection/chroot/fork.lisp
+++ b/src/connection/chroot/fork.lisp
@@ -38,7 +38,9 @@
(unless (lisp-connection-p)
(error "Forking into a chroot requires a Lisp-type connection"))
#-(or sbcl) (error "Don't know how to safely fork() in this Lisp")
- ;; TODO copy required prerequisite data into the chroot
+ ;; TODO copy required prerequisite data into the chroot -- propellor uses a
+ ;; bind mount but we might be the root Lisp, in which case we don't have a
+ ;; cache to bind mount in. use chroot.shell connection to upload?
(mapc #'force-output
(list *standard-output* *error-output* *debug-io* *terminal-io*))
(let ((child (fork)))
@@ -49,11 +51,12 @@
(0
(handler-case
(progn
- ;; TODO either (reset-data-sources), or bind a restart to ignore
- ;; data source errors, as they may or may not be available inside
- ;; the chroot, depending on whether the data source code needs to
- ;; read files outside of the chroot or already has the data
- ;; cached, a socket open etc.
+ ;; TODO either (reset-data-sources), or bind a restart to convert
+ ;; data source errors into failed-change (or ignore them? or
+ ;; what?), as they may or may not be available inside the chroot,
+ ;; depending on whether the data source code needs to read files
+ ;; outside of the chroot or already has the data cached, a socket
+ ;; open etc.
(mapc #'clear-input
(list *standard-input* *debug-io* *terminal-io*))
(unless (zerop (chroot into))