Skip to content

Commit 03d9726

Browse files
committed
ksud: remove tmpfs mounting
if a user wants it, they should just mount it themselves
1 parent 426fa8a commit 03d9726

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

userspace/ksud/src/defs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,4 @@ pub const KSU_BACKUP_DIR: &str = WORKING_DIR;
4040
pub const KSU_BACKUP_FILE_PREFIX: &str = "ksu_backup_";
4141
pub const BACKUP_FILENAME: &str = "stock_image.sha1";
4242

43-
pub const NO_TMPFS_PATH: &str = concatcp!(WORKING_DIR, ".notmpfs");
4443
pub const NO_MOUNT_PATH: &str = concatcp!(WORKING_DIR, ".nomount");

userspace/ksud/src/init_event.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::defs::{KSU_MOUNT_SOURCE, NO_MOUNT_PATH, NO_TMPFS_PATH, TEMP_DIR};
1+
use crate::defs::{KSU_MOUNT_SOURCE, NO_MOUNT_PATH, TEMP_DIR};
22
use crate::module::{handle_updated_modules, prune_modules};
33
use log::{info, warn};
44
use rustix::fs::{MountFlags, mount};
@@ -80,15 +80,6 @@ pub fn on_post_data_fs() -> Result<()> {
8080
warn!("apply root profile sepolicy failed: {e}");
8181
}
8282

83-
// mount temp dir
84-
if !Path::new(NO_TMPFS_PATH).exists() {
85-
if let Err(e) = mount(KSU_MOUNT_SOURCE, TEMP_DIR, "tmpfs", MountFlags::empty(), "") {
86-
warn!("do temp dir mount failed: {}", e);
87-
}
88-
} else {
89-
info!("no tmpfs requested");
90-
}
91-
9283
// exec modules post-fs-data scripts
9384
// TODO: Add timeout
9485
if let Err(e) = crate::module::exec_stage_script("post-fs-data", true) {

0 commit comments

Comments
 (0)