You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,19 +234,27 @@ Additional modules include:
234
234
#### ugrd.fs.mounts
235
235
236
236
*`autodetect_root` (true) Set the root mount parameter based on the current root label or uuid.
237
-
*`autodetect_root_dm` (true) Attempt to automatically configure virtual block devices such as LUKS/LVM/MDRAID.
238
-
*`autodetect_root_luks` (true) Attempt to automatically configure LUKS mounts for the root device.
239
-
*`autodetect_root_lvm` (true) Attempt to automatically configure LVM mounts for the root device.
240
-
*`autodetect_root_mdraid` (true) Attempt to automatically configure MDRAID mounts for the root device.
237
+
*`autodetect_dm` (true) Attempt to automatically configure virtual block devices such as LUKS/LVM/MDRAID.
238
+
*`autodetect_luks` (true) Attempt to automatically configure LUKS mounts for the root device.
239
+
*`autodetect_lvm` (true) Attempt to automatically configure LVM mounts for the root device.
240
+
*`autodetect_mdraid` (true) Attempt to automatically configure MDRAID mounts for the root device.
241
241
*`autodetect_init_mount'` (true) Automatically detect the mountpoint for the init binary, and add it to `late_mounts`.
242
242
*`run_dirs` A list of directories to create under `/run/` at runtime
243
243
244
-
> `autodetect_root` is required for `autodetect_root_<type>` to work.
244
+
> `autodetect_root` is required for `autodetect_<type>` to work.
245
245
246
246
`mounts`: A dictionary containing entries for mounts, with their associated config.
247
247
248
+
Mounts defined here are mounted before `init_main` is run. This cannot be used for mounts backed by LUKS, LVM, or MDRAID devices, because the backend will not be available when these mounts are attempted.
249
+
250
+
> `mounts` can be automatically populated by configuring paths as list items in `auto_mounts`.
251
+
248
252
`mounts.root` is predefined to have a destination of `/target_rootfs` and defines the root filesystem mount, used by `switch_root`.
249
253
254
+
`late_mounts`: A dictionary containing entries for mounts that should be mounted after `init_main` is run.
255
+
256
+
> `late_mounts` can be automatically populated by configuring paths as list items in `auto_late_mounts`.
257
+
250
258
Each mount has the following available parameters:
251
259
252
260
*`type` (auto) Mount filesystem type.
@@ -285,6 +293,8 @@ label = "extra"
285
293
286
294
Paths added to `auto_mounts` will be auto-configured to mount before `init_main` is run.
287
295
296
+
Paths added to `auto_late_mounts` will be auto-configured to mount after `init_main` is run.
297
+
288
298
#### ugrd.fs.fakeudev
289
299
290
300
This module is used to create fake udev entries for DM devices.
@@ -314,6 +324,7 @@ Importing this module will run `btrfs device scan` and pull btrfs modules.
314
324
*`autodetect_root_subvol` (true) Autodetect the root subvolume, unless `root_subvol` or `subvol_selector` is set. Depends on `hostonly`.
315
325
*`root_subvol` - Set the desired root subvolume.
316
326
*`_base_mount_path` (/root_base) Sets where the subvolume selector mounts the base filesytem to scan for subvolumes.
327
+
*`btrfs_userspace` (true) Add btrfs binary to be able to mount multi-device btrfs partitions.
# If the mountpoint is in auto_mounts, log a big error about it being prone to failure, allow
545
+
ifmountpointinself["auto_mounts"]:
546
+
self.logger.error(f"Found a device mapper mount in auto_mounts: {c_(mountpoint, 'yellow', bold=True)}")
547
+
self.logger.warning(
548
+
"auto_mounts is used for mounts before LVM/LUKS init (during mount_fstab). Device mapper mounts defined here may fail to activate and stop the boot process!"
549
+
)
550
+
ifself["validate"]:
551
+
raiseValidationError(
552
+
f"Device mapper mount found in auto_mounts, auto_mounts cannot be device mapper based: {c_(mountpoint, 'red', bold=True)}"
553
+
)
554
+
544
555
# Get the virtual block device name using the major/minor
0 commit comments