Skip to main content

Module generator

Module generator 

Source

Constantsยง

BOOTC_EDITED_STAMP ๐Ÿ”’
CLEANUP_UNIT ๐Ÿ”’
EDIT_UNIT ๐Ÿ”’
FSTAB_ANACONDA_STAMP ๐Ÿ”’
MULTI_USER_TARGET ๐Ÿ”’
STATUS_ONBOOT_UNIT ๐Ÿ”’
STATUS_PATH_UNIT ๐Ÿ”’
SYSINIT_TARGET ๐Ÿ”’
TRANSIENT_RELABEL_UNIT ๐Ÿ”’

Functionsยง

enable_unit ๐Ÿ”’
fstab_generator_impl ๐Ÿ”’
Called when the root is read-only composefs to reconcile /etc/fstab
generate_fstab_editor ๐Ÿ”’
Parse /etc/fstab and check if the root mount is out of sync with the composefs state, and if so, fix it.
generate_transient_overlay_relabel ๐Ÿ”’
Generate a oneshot service that relabels the transient overlay inode after SELinux policy loads, fixing the tmpfs_t label SELinux assigns to overlay upper-dir inodes at policy-load time.
generator ๐Ÿ”’
Main entrypoint for the generator
relabel_overlay_mountpoints ๐Ÿ”’
Relabel transient overlay mount point inodes using the running SELinux policy. Called by the generated bootc-early-overlay-relabel.service oneshot to fix the tmpfs_t label that fs_use_trans assigns to overlay upper-dir inodes at policy-load time. Each of /, /etc, /var is relabelled iff it is a writable overlayfs (i.e. a transient overlay, not the read-only composefs).
unit_enablement_impl ๐Ÿ”’
Enable our units