aboutsummaryrefslogtreecommitdiff
path: root/src/property/mount.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-07-02 10:42:55 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-07-06 21:19:39 -0700
commite0672a93ed2e4899dd3ab40e247edac82827e2bc (patch)
tree60a46955885e9e4477e7c20eca769dc15e3bb5eb /src/property/mount.lisp
parenta4cb8a892183462b0713580a5e2134c3f3d1d95d (diff)
downloadconsfigurator-e0672a93ed2e4899dd3ab40e247edac82827e2bc.tar.gz
factor out MOUNT:*{STANDARD-LINUX,LINUX-EFIVARS}-VFS*
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/mount.lisp')
-rw-r--r--src/property/mount.lisp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/property/mount.lisp b/src/property/mount.lisp
index aa01050..a48a83b 100644
--- a/src/property/mount.lisp
+++ b/src/property/mount.lisp
@@ -93,6 +93,21 @@ Uses findmnt(8), so Linux-specific."
;;;; Utilities for :LISP properties
+(defparameter *standard-linux-vfs* '(
+("-t" "proc" "-o" "nosuid,noexec,nodev" "proc" "/proc")
+("-t" "sysfs" "-o" "nosuid,noexec,nodev,ro" "sys" "/sys")
+("-t" "devtmpfs" "-o" "mode=0755,nosuid" "udev" "/dev")
+("-t" "devpts" "-o" "mode=0620,gid=5,nosuid,noexec" "devpts" "/dev/pts")
+("-t" "tmpfs" "-o" "mode=1777,nosuid,nodev" "shm" "/dev/shm")
+("-t" "tmpfs" "-o" "mode=1777,strictatime,nodev,nosuid" "tmp" "/tmp")
+("--bind" "/run" "/run")))
+
+(defparameter *linux-efivars-vfs*
+ '("-t" "efivarfs" "-o" "nosuid,noexec,nodev" "efivarfs"
+ "/sys/firmware/efi/efivars")
+ "Arguments to mount(8) to mount the UEFI NVRAM.
+After mounting /sys, mount this when /sys/firmware/efi/efivars exists.")
+
(defun assert-devtmpfs-udev-/dev ()
"On a system with the Linux kernel, assert that /dev has fstype devtmpfs."
(unless (and (zerop (mrun :for-exit "mountpoint" "-q" "/dev"))