aboutsummaryrefslogtreecommitdiff
path: root/src/property/installer.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-07-10 18:51:50 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-07-10 21:47:52 -0700
commitb658d3b6087770aacc89d10d9ed464c2e9bf31a4 (patch)
tree0fac9b32d699931a9b6c7da9f18fcf69f5573063 /src/property/installer.lisp
parentb4733ff71f56d70c4a9909d11b37351c4c9c3a85 (diff)
downloadconsfigurator-b658d3b6087770aacc89d10d9ed464c2e9bf31a4.tar.gz
INSTALLER:CLEANLY-INSTALLED-ONCE: preserve /sys
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/installer.lisp')
-rw-r--r--src/property/installer.lisp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/property/installer.lisp b/src/property/installer.lisp
index fd2fce3..ba2e21f 100644
--- a/src/property/installer.lisp
+++ b/src/property/installer.lisp
@@ -177,8 +177,12 @@ using a combinator like ON-CHANGE, or applied manually with DEPLOY-THESE."
'(;; These dirs can contain sockets, remote Lisp image output,
;; etc.; avoid upsetting those.
#P"/run/" #P"/tmp/"
- ;; Makes sense to keep /proc until we replace the running init.
- #P"/proc/"))
+ ;; Makes sense to keep /proc until we replace the running init,
+ ;; and we want to retain all the systemd virtual filesystems
+ ;; under /sys to avoid problems applying other properties. Both
+ ;; are empty directories right after debootstrap, so nothing to
+ ;; copy out.
+ #P"/proc/" #P"/sys/"))
efi-system-partition-mount-args)
(flet ((preservedp (pathname)
(member pathname preserved-directories :test #'pathname-equal)))
@@ -256,9 +260,6 @@ using a combinator like ON-CHANGE, or applied manually with DEPLOY-THESE."
(dolist (mount mount:*standard-linux-vfs*)
(unless (preservedp (ensure-directory-pathname (lastcar mount)))
(apply #'system "mount" mount)))
- (when (and (not (preservedp #P"/sys/"))
- (directory-exists-p "/sys/firmware/efi/efivars"))
- (apply #'mrun "mount" mount:*linux-efivars-vfs*))
(when efi-system-partition-mount-args
(ensure-directories-exist #P"/boot/efi/")
(apply #'mrun "mount" efi-system-partition-mount-args))))))