kernel/manager: No longer need to add unmounting for default mount points

This commit is contained in:
ShirkNeko
2025-11-20 20:28:00 +08:00
parent 954ecd9644
commit c574f39ae3
4 changed files with 22 additions and 66 deletions

View File

@@ -1,6 +1,3 @@
use anyhow::{Context, Result};
use log::{info, warn};
use std::path::Path;
#[cfg(target_arch = "aarch64")]
use crate::kpm;
use crate::module::{handle_updated_modules, prune_modules};
@@ -9,6 +6,9 @@ use crate::{
assets, defs, ksucalls, metamodule, restorecon,
utils::{self},
};
use anyhow::{Context, Result};
use log::{info, warn};
use std::path::Path;
pub fn on_post_data_fs() -> Result<()> {
ksucalls::report_post_fs_data();

View File

@@ -170,7 +170,7 @@ impl UmountManager {
}
pub fn init_umount_manager() -> Result<UmountManager> {
let mut manager = UmountManager::new(None)?;
let manager = UmountManager::new(None)?;
if !Path::new(CONFIG_FILE).exists() {
manager.save_config()?;