We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8cebac commit 8f97547Copy full SHA for 8f97547
2 files changed
crates/krun/src/bin/krun.rs
@@ -149,7 +149,7 @@ fn main() -> Result<()> {
149
let disks: Vec<String> = if !options.fex_images.is_empty() {
150
options.fex_images
151
} else {
152
- let default_disks = vec![
+ let default_disks = [
153
"/usr/share/fex-emu/RootFS/default.erofs",
154
"/usr/share/fex-emu/overlays/mesa.erofs",
155
];
crates/krun/src/guest/mount.rs
@@ -93,7 +93,7 @@ fn mount_fex_rootfs() -> Result<()> {
93
pub fn mount_filesystems() -> Result<()> {
94
make_tmpfs("/var/run")?;
95
96
- if let Err(_) = mount_fex_rootfs() {
+ if mount_fex_rootfs().is_err() {
97
println!("Failed to mount FEX rootfs, carrying on without.")
98
}
99
0 commit comments