diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-07-10 18:51:50 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-07-10 21:47:52 -0700 |
commit | b658d3b6087770aacc89d10d9ed464c2e9bf31a4 (patch) | |
tree | 0fac9b32d699931a9b6c7da9f18fcf69f5573063 /src/property/installer.lisp | |
parent | b4733ff71f56d70c4a9909d11b37351c4c9c3a85 (diff) | |
download | consfigurator-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.lisp | 11 |
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)))))) |