Skip to content

Commit

Permalink
manager: fake_ovl
Browse files Browse the repository at this point in the history
  • Loading branch information
backslashxx committed Feb 18, 2025
1 parent 2b07ce8 commit d76107f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion userspace/ksud/src/defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub const PROFILE_SELINUX_DIR: &str = concatcp!(PROFILE_DIR, "selinux/");
pub const PROFILE_TEMPLATE_DIR: &str = concatcp!(PROFILE_DIR, "templates/");

pub const KSURC_PATH: &str = concatcp!(WORKING_DIR, ".ksurc");
pub const KSU_OVERLAY_SOURCE: &str = "KSU";
pub const KSU_OVERLAY_SOURCE: &str = "/dev/block/dm-0";
pub const DAEMON_PATH: &str = concatcp!(ADB_DIR, "ksud");
pub const MAGISKBOOT_PATH: &str = concatcp!(BINARY_DIR, "magiskboot");

Expand Down
4 changes: 2 additions & 2 deletions userspace/ksud/src/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pub fn mount_overlayfs(
.map(|e| e.display().to_string());

let result = (|| {
let fs = fsopen("overlay", FsOpenFlags::FSOPEN_CLOEXEC)?;
let fs = fsopen("erofs", FsOpenFlags::FSOPEN_CLOEXEC)?;
let fs = fs.as_fd();
fsconfig_set_string(fs, "lowerdir", &lowerdir_config)?;
if let (Some(upperdir), Some(workdir)) = (&upperdir, &workdir) {
Expand Down Expand Up @@ -146,7 +146,7 @@ pub fn mount_overlayfs(
mount(
KSU_OVERLAY_SOURCE,
dest.as_ref(),
"overlay",
"erofs",
MountFlags::empty(),
data,
)?;
Expand Down

0 comments on commit d76107f

Please sign in to comment.