diff --git a/src/utils/system.rs b/src/utils/system.rs index f9b7ada..9ce96ab 100644 --- a/src/utils/system.rs +++ b/src/utils/system.rs @@ -148,20 +148,6 @@ pub fn rebuild_initramfs() { command = vec!["mkinitcpio", "-P"]; } - if let Ok(which) = Command::new("which").arg("systemd-inhibit").output() - && which.status.success() - { - let mut new_cmd = vec![ - "systemd-inhibit", - "--who=lapctl", - "--why", - "Rebuilding initramfs", - "--", - ]; - new_cmd.extend(command.iter()); - command = new_cmd; - } - if !command.is_empty() { println!("Rebuilding the initramfs..."); let is_debug = log::log_enabled!(log::Level::Debug);