Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AerynOS/blsforme
/ functions
Functions
92 in github.com/AerynOS/blsforme
⨍
Functions
92
◇
Types & classes
40
↓ 33 callers
Method
iter
Iterate all mount points (no copy)
crates/topology/src/disk/mounts.rs:82
↓ 17 callers
Method
join_insensitive
(&self, path: P)
blsforme/src/file_utils.rs:24
↓ 15 callers
Method
path
When we don't need the type of the root..
blsforme/src/lib.rs:90
↓ 4 callers
Method
as_str
Convert the variable into a static string representation for the EFI variable name
blsforme/src/bootloader/systemd_boot/interface.rs:66
↓ 4 callers
Method
esp
Return the EFI System Partition (UEFI only)
blsforme/src/bootenv.rs:171
↓ 4 callers
Method
xbootldr
Return the XBOOTLDR partition (UEFI only)
blsforme/src/bootenv.rs:176
↓ 3 callers
Method
build
Return a newly built Probe Note: All input paths will be verified
crates/topology/src/disk/builder.rs:58
↓ 3 callers
Method
cmd_line
Generate a working "root=" style boot line
crates/topology/src/disk/device.rs:79
↓ 3 callers
Function
cmdline_snippet
Read a cmdline snippet from a file, which supports comments (`#`) and concatenates lines into a single string.
blsforme/src/file_utils.rs:135
↓ 3 callers
Method
get_device_from_mountpoint
Resolve a device by mountpoint
crates/topology/src/disk/probe.rs:43
↓ 3 callers
Method
get_device_parent
Retrieve the parent device, such as the disk of a partition, if possible
crates/topology/src/disk/probe.rs:69
↓ 3 callers
Method
get_device_superblock
Scan superblock of the device for `UUID=` parameter
crates/topology/src/disk/probe.rs:116
↓ 3 callers
Method
get_rootfs_device
Determine the composite rootfs device for the given mountpoint, building a set of superblocks and necessary `/proc/cmdline` arguments
crates/topology/src/disk/probe.rs:128
↓ 3 callers
Method
os_namespace
Retrieve the namespace for files on the boot partition(s)
blsforme/src/kernel.rs:128
↓ 2 callers
Method
bootloader
factory - create bootloader instance
blsforme/src/manager.rs:228
↓ 2 callers
Function
changed_files
Find out which files in the set changed Given a slice containing tuples of pathbufs, return an allocated set of cloned pathbuf tuples (pairs) known t
blsforme/src/file_utils.rs:70
↓ 2 callers
Function
copy_atomic_vfat
Copy source file to dest file, handling vfat oddities. Long story short we always set a temporary file name up, then delete the target file, and fina
blsforme/src/file_utils.rs:88
↓ 2 callers
Method
discover_system_kernels
Given a set of kernel-like paths, yield all potential kernels within them This should be a set of `/usr/lib/kernel` paths. Use glob or appropriate to
blsforme/src/kernel.rs:109
↓ 2 callers
Method
get_device_path
Determine which device "booted", ie the ESP on which systemd-boot lives
blsforme/src/bootloader/systemd_boot/interface.rs:110
↓ 2 callers
Method
get_ucs2_string
Grab a UCS2 string from efivars
blsforme/src/bootloader/systemd_boot/interface.rs:116
↓ 2 callers
Method
install
Install a kernel to the ESP or XBOOTLDR, write a config for it
blsforme/src/bootloader/systemd_boot/mod.rs:241
↓ 2 callers
Method
installed_kernel_name
Generate an installed name for the kernel, used by bootloaders Right now this only returns CBM style IDs
blsforme/src/entry.rs:143
↓ 2 callers
Method
mount_vfat_partition
(&self, source: &Path, target: &Path)
blsforme/src/manager.rs:190
↓ 2 callers
Function
scan_os_release
(root: impl AsRef<Path>)
blsctl/src/main.rs:73
↓ 2 callers
Method
with_devfs
devfs directory
crates/topology/src/disk/builder.rs:41
↓ 2 callers
Method
with_procfs
procfs directory
crates/topology/src/disk/builder.rs:49
↓ 2 callers
Method
with_sysfs
sysfs directory
crates/topology/src/disk/builder.rs:33
↓ 1 callers
Function
check_permissions
Bail-out permission check for execution
blsctl/src/main.rs:204
↓ 1 callers
Method
cleanup_stale_entries
Clean up stale loader configs and kernel directories
blsforme/src/bootloader/systemd_boot/mod.rs:151
↓ 1 callers
Function
files_identical
Compare two files with blake3 to see if they differ
blsforme/src/file_utils.rs:42
↓ 1 callers
Method
generate_entry
Generate a usable loader config entry
blsforme/src/bootloader/systemd_boot/mod.rs:321
↓ 1 callers
Method
get_device_chain
When given a path in `/dev` we attempt to resolve the full chain for it. Note: This does NOT include the initially passed device.
crates/topology/src/disk/probe.rs:87
↓ 1 callers
Method
get_device_guid
For GPT disks return the PartUUID (GUID)
crates/topology/src/disk/probe.rs:161
↓ 1 callers
Method
get_device_part_uuid
Grab the PartUUID for the ESP-booting device
blsforme/src/bootloader/systemd_boot/interface.rs:105
↓ 1 callers
Method
get_kernel_dir
Get the kernel directory for a specific entry
blsforme/src/bootloader/systemd_boot/mod.rs:63
↓ 1 callers
Method
init_scan
Initial startup loads TODO: If requested, pvscan/vgscan/lvscan
crates/topology/src/disk/probe.rs:35
↓ 1 callers
Function
inspect_root
(config: &Configuration)
blsctl/src/main.rs:144
↓ 1 callers
Method
installed_asset_name
Generate installed asset (aux) name, used by bootloaders Right now this only returns CBM style IDs
blsforme/src/entry.rs:160
↓ 1 callers
Method
is_flag
Returns true if this is a flag
crates/topology/src/disk/mounts.rs:39
↓ 1 callers
Method
join_var
Generate root path for the variable
blsforme/src/bootloader/systemd_boot/interface.rs:128
↓ 1 callers
Method
load_cmdline_snippets
Load cmdline snippets from the system root for this entry's sysroot
blsforme/src/entry.rs:52
↓ 1 callers
Method
mount_partitions
Mount any required partitions (ESP/XBOOTLDR)
blsforme/src/manager.rs:149
↓ 1 callers
Method
options
Convert [`Mount::opts`] into an iterator of typed options
crates/topology/src/disk/mounts.rs:54
↓ 1 callers
Method
os_display_name
Retrieve display name for the OS This is the `PRETTY_NAME` field in os-release, used for display purposes
blsforme/src/kernel.rs:149
↓ 1 callers
Method
os_id
Retrieve the OS ID (ie `serpent-os`, `aerynos`, etc) This is the `ID` field in os-release
blsforme/src/kernel.rs:138
↓ 1 callers
Function
query_schema
Query the schema we need to use for pre BLS schema installations
blsctl/src/main.rs:116
↓ 1 callers
Function
scan_os_info
Scan the rootfs for os-info.json
blsctl/src/main.rs:95
↓ 1 callers
Method
sync_entries
( &self, cmdline: impl Iterator<Item = &'a str>, entries: &[Entry], excluded_s
blsforme/src/bootloader/mod.rs:60
↓ 1 callers
Method
with_bootloader_assets
Update the set of bootloader assets
blsforme/src/manager.rs:141
↓ 1 callers
Method
with_entries
Set the system kernels to use for sync operations
blsforme/src/manager.rs:133
Function
basic_interface_test
()
blsforme/src/bootloader/systemd_boot/interface.rs:140
Method
blsforme_kernels
Handle newstyle discovery
blsforme/src/kernel.rs:282
Method
boot_environment
Returns the boot environment
blsforme/src/manager.rs:177
Method
boot_partition
The so-called `$BOOT` partition (UEFI only at present)
blsforme/src/bootenv.rs:166
Method
cmdline
Access the automatic cmdline
blsforme/src/manager.rs:128
Method
default
()
crates/topology/src/disk/builder.rs:22
Method
determine_esp_by_bls
If UEFI we can ask BootLoaderProtocol for help to find out the ESP device.
blsforme/src/bootenv.rs:116
Method
determine_esp_by_gpt
Determine ESP by searching relative GPT
blsforme/src/bootenv.rs:129
Method
discover_xbootldr
Discover an XBOOTLDR partition *relative* to wherever the ESP is
blsforme/src/bootenv.rs:147
Method
drop
(&mut self)
blsforme/src/manager.rs:245
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
blsforme/src/bootloader/systemd_boot/interface.rs:85
Method
from_str
(s: &str)
blsforme/src/os_release.rs:62
Method
id
Return an entry ID, suitable for `.conf` generation
blsforme/src/entry.rs:126
Method
installed_kernels
Discover installed kernels using the mount tokens
blsforme/src/manager.rs:182
Method
installed_kernels
Grab the installed entries
blsforme/src/bootloader/mod.rs:72
Method
installed_kernels
(&self)
blsforme/src/bootloader/systemd_boot/mod.rs:354
Method
is_option
Returns true if this is a key=value mapping
crates/topology/src/disk/mounts.rs:47
Method
legacy_kernels
Discover any legacy kernels
blsforme/src/kernel.rs:158
Function
main
()
blsctl/src/main.rs:213
Method
map_decode
(o: &HashMap<&str, &str>)
blsforme/src/os_release.rs:76
Method
new
Return a new BootEnvironment for the given root
blsforme/src/bootenv.rs:53
Method
new
New entry for the given kernel
blsforme/src/entry.rs:41
Method
new
Construct a new blsforme::Manager with the given configuration
blsforme/src/manager.rs:48
Method
new
Construct the firmware-appropriate bootloader manager
blsforme/src/bootloader/mod.rs:39
Method
new
Construct a new systemd boot loader manager
blsforme/src/bootloader/systemd_boot/mod.rs:45
Method
new
Generate a new BootLoaderInterface for the given root
blsforme/src/bootloader/systemd_boot/interface.rs:92
Method
new
( probe: &'a probe::Probe, path: impl AsRef<Path>, mount: Option<PathBuf>, aux
crates/topology/src/disk/device.rs:44
Method
new
New MountTable parser for string Arguments: `data` - Some owned string
crates/topology/src/disk/mounts.rs:77
Method
new_from_path
New MountTable parser for file Arguments: `path` - Path to load the mtab from (i.e. `/proc/self/mounts`)
crates/topology/src/disk/mounts.rs:99
Method
os_name
Retrieve the OS name
blsforme/src/kernel.rs:118
Method
sync
Attempt to sync kernels/bootloader with the targets Any already installed kernels will be skipped, and this step is not responsible for *deleting* an
blsforme/src/manager.rs:207
Method
sync
Sync bootloader to BOOT dir
blsforme/src/bootloader/mod.rs:54
Method
sync
Sync bootloader to ESP (not XBOOTLDR..)
blsforme/src/bootloader/systemd_boot/mod.rs:71
Method
sync_entries
( &self, cmdline: impl Iterator<Item = &'a str>, entries: &[Entry], excluded_s
blsforme/src/bootloader/systemd_boot/mod.rs:119
Function
test_boot_json
()
blsforme/src/kernel.rs:373
Function
topology_test
()
crates/topology/tests/ext4_gpt.rs:12
Function
topology_test
()
crates/topology/tests/btrfs_gpt_lvm_on_luks.rs:12
Method
try_from
(value: &'a str)
blsforme/src/kernel.rs:52
Method
with_cmdline
With the given cmdline entry Used by moss to inject a `moss.tx={}` parameter
blsforme/src/entry.rs:119
Method
with_schema
With the given schema Used by moss to override the global schema
blsforme/src/entry.rs:110
Method
with_state_id
With the given state ID Used by moss to link to the unique transaction ID on disk
blsforme/src/entry.rs:101
Method
with_sysroot
With the given system root This will cause any local snippets to be discovered
blsforme/src/entry.rs:92