Revert "ksud: Only start the monitor and load the module when KPM is enabled"

This reverts commit 3ed1d9aebc.
This commit is contained in:
ShirkNeko
2025-09-23 18:40:58 +08:00
parent 32baf8d9b0
commit 5497c0004d
2 changed files with 89 additions and 56 deletions

View File

@@ -9,6 +9,8 @@ use std::path::Path;
pub fn on_post_data_fs() -> Result<()> {
ksucalls::report_post_fs_data();
kpm::start_kpm_watcher()?;
utils::umask(0);
#[cfg(unix)]
@@ -105,13 +107,11 @@ pub fn on_post_data_fs() -> Result<()> {
info!("no mount requested");
}
if kpm::is_kpm_enabled()? {
kpm::start_kpm_watcher()?;
kpm::load_kpm_modules()?;
}
run_stage("post-mount", true);
// load kpm modules
kpm::load_kpm_modules()?;
Ok(())
}