diff --git a/src/graphics.rs b/src/graphics.rs index 84592b4..9229237 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -715,6 +715,8 @@ impl Graphics { fn update_initramfs_cmd() -> (&'static str, &'static str) { if path::Path::new("/usr/bin/dracut").exists() { ("dracut", "--force") + } else if path::Path::new("/usr/bin/mkinitcpio").exists() { + ("mkinitcpio", "-P") } else { ("update-initramfs", "-u") }