bootc_lib/
composefs_consts.rs

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