fix: update hook file path to correct directory location

This commit is contained in:
2026-03-01 13:46:44 -06:00
parent 238f64eef7
commit 3c2bcc0ce2
+2 -2
View File
@@ -1,6 +1,6 @@
//! Transaction hook loading and execution.
//!
//! Hook files live under `<rootfs>/etc/depot.d/hooks/*.toml` and follow a
//! Hook files live under `<rootfs>/usr/share/depot.d/hooks/*.toml` and follow a
//! Starpack-inspired format:
//!
//! ```toml
@@ -29,7 +29,7 @@ use std::io::Write;
use std::path::{Path, PathBuf};
use std::process::{Command, ExitStatus, Stdio};
const TRANSACTION_HOOKS_DIR_REL: &str = "etc/depot.d/hooks";
const TRANSACTION_HOOKS_DIR_REL: &str = "usr/share/depot.d/hooks";
/// Hook phase within an install/update/remove transaction.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]