CONSFIGURATOR.PROPERTY.MOUNT

API reference

General

Property: MOUNT:MOUNTED

(mount:mounted &key target)

Ensures that TARGET, a mount point configured in /etc/fstab, is mounted. Mainly useful as a dependency of properties which might do the wrong thing if the mount is not actually active.

Property: MOUNT:UNMOUNTED-BELOW

(mount:unmounted-below dir &key and-at)

Unmount anything mounted below DIR, and when AND-AT, anything mounted at DIR.

Not aware of shared subtrees, so you might need to use the –make-rslave option to mount(8) first. For example, if you did ‘mount –rbind /dev chroot/dev’ then unless you also execute ‘mount –make-rslave chroot/dev’, this property will empty /dev, breaking all kinds of things.

Property: MOUNT:UNMOUNTED-BELOW-AND-REMOVED

(mount:unmounted-below-and-removed dir)

Unmount anything mounted below DIR, recursively delete the contents of DIR, and unless DIR is itself a mount point, also remove DIR.

Function: MOUNT:ALL-MOUNTS

(mount:all-mounts &optional below)

Retrieve all mountpoints below BELOW, ordered lexicographically. If BELOW is itself a mountpoint, it will be included as the first element.

Uses findmnt(8), so Linux-specific.

Utilities for :LISP properties

Constant: MOUNT:+LINUX-BASIC-VFS+

Constant: MOUNT:+LINUX-EFIVARS-VFS+

Arguments to mount(8) to mount the UEFI NVRAM. After mounting /sys, mount this when /sys/firmware/efi/efivars exists.

Function: MOUNT:ASSERT-DEVTMPFS-UDEV-/DEV

(mount:assert-devtmpfs-udev-/dev)

On a system with the Linux kernel, assert that /dev has fstype devtmpfs.