skip init_features in safe mode
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#[cfg(target_arch = "aarch64")]
|
#[cfg(target_arch = "aarch64")]
|
||||||
use crate::kpm;
|
use crate::kpm;
|
||||||
|
use crate::utils::is_safe_mode;
|
||||||
use crate::{
|
use crate::{
|
||||||
assets, defs,
|
assets, defs,
|
||||||
defs::{KSU_MOUNT_SOURCE, NO_MOUNT_PATH, NO_TMPFS_PATH},
|
defs::{KSU_MOUNT_SOURCE, NO_MOUNT_PATH, NO_TMPFS_PATH},
|
||||||
@@ -88,7 +89,9 @@ pub fn on_post_data_fs() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// load feature config
|
// load feature config
|
||||||
if let Err(e) = crate::feature::init_features() {
|
if is_safe_mode() {
|
||||||
|
warn!("safe mode, skip load feature config");
|
||||||
|
} else if let Err(e) = crate::feature::init_features() {
|
||||||
warn!("init features failed: {e}");
|
warn!("init features failed: {e}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user