1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff --git a/src/graphics.rs b/src/graphics.rs
index ebdd9b6..7223a6e 100644
--- a/src/graphics.rs
+++ b/src/graphics.rs
@@ -80,7 +80,7 @@ pub enum GraphicsDeviceError {
SysFs(io::Error),
#[error("failed to unbind {} on PCI driver {}: {}", func, driver, why)]
Unbind { func: String, driver: String, why: io::Error },
- #[error("update-initramfs failed with {} status", _0)]
+ #[error("initramfs update failed with {} status", _0)]
UpdateInitramfs(ExitStatus),
}
@@ -427,9 +427,9 @@ impl Graphics {
}
log::info!("Updating initramfs");
- const UPDATE_INITRAMFS_CMD: &str = "update-initramfs";
+ const UPDATE_INITRAMFS_CMD: &str = "mkinitcpio";
let status = process::Command::new(UPDATE_INITRAMFS_CMD)
- .arg("-u")
+ .arg("-P")
.status()
.map_err(|why| GraphicsDeviceError::Command { cmd: UPDATE_INITRAMFS_CMD, why })?;
|