MCPcopy Index your code
hub / github.com/bootc-dev/bootc / path

Method path

crates/blockdev/src/blockdev.rs:120–122  ·  view source on GitHub ↗

RHEL8's lsblk doesn't have PATH, so we do it

(&self)

Source from the content-addressed store, hash-verified

118impl Device {
119 // RHEL8's lsblk doesn't have PATH, so we do it
120 pub fn path(&self) -> String {
121 self.path.clone().unwrap_or(format!("/dev/{}", &self.name))
122 }
123
124 /// Alias for path() for compatibility
125 #[allow(dead_code)]

Callers 15

tmp_rootFunction · 0.45
dropMethod · 0.45
mount_devMethod · 0.45
mount_fdMethod · 0.45
spawn_editorFunction · 0.45
mount_esp_partFunction · 0.45
install_via_bootupdFunction · 0.45
install_via_ziplFunction · 0.45
install_to_diskFunction · 0.45
run_from_optFunction · 0.45

Calls

no outgoing calls

Tested by 6

test_install_tFunction · 0.36
validate_tar_expectedFunction · 0.36