bootc_lib/
composefs_consts.rs

1#![allow(dead_code)]
2
3/// composefs= parameter in kernel cmdline
4pub const COMPOSEFS_CMDLINE: &str = "composefs";
5
6/// Directory to store transient state, such as staged deployemnts etc
7pub(crate) const COMPOSEFS_TRANSIENT_STATE_DIR: &str = "/run/composefs";
8/// File created in /run/composefs to record a staged-deployment
9pub(crate) const COMPOSEFS_STAGED_DEPLOYMENT_FNAME: &str = "staged-deployment";
10
11/// Absolute path to composefs-backend state directory
12pub(crate) const STATE_DIR_ABS: &str = "/sysroot/state/deploy";
13/// Relative path to composefs-backend state directory. Relative to /sysroot
14pub(crate) const STATE_DIR_RELATIVE: &str = "state/deploy";
15/// Relative path to the shared 'var' directory. Relative to /sysroot
16pub(crate) const SHARED_VAR_PATH: &str = "state/os/default/var";
17
18/// Section in .origin file to store boot related metadata
19pub(crate) const ORIGIN_KEY_BOOT: &str = "boot";
20/// Whether the deployment was booted with BLS or UKI
21pub(crate) const ORIGIN_KEY_BOOT_TYPE: &str = "boot_type";
22/// Key to store the SHA256 sum of vmlinuz + initrd for a deployment
23pub(crate) const ORIGIN_KEY_BOOT_DIGEST: &str = "digest";
24
25/// Filename for `loader/entries`
26pub(crate) const BOOT_LOADER_ENTRIES: &str = "entries";
27/// Filename for staged boot loader entries
28pub(crate) const STAGED_BOOT_LOADER_ENTRIES: &str = "entries.staged";
29
30/// Filename for grub user config
31pub(crate) const USER_CFG: &str = "user.cfg";
32/// Filename for staged grub user config
33pub(crate) const USER_CFG_STAGED: &str = "user.cfg.staged";
34
35/// Path to the config files directory for Type1 boot entries
36/// This is relative to the boot/efi directory
37pub(crate) const TYPE1_ENT_PATH: &str = "loader/entries";
38pub(crate) const TYPE1_ENT_PATH_STAGED: &str = "loader/entries.staged";
39
40pub(crate) const BOOTC_FINALIZE_STAGED_SERVICE: &str = "bootc-finalize-staged.service";