mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-01 23:40:33 -08:00
Move worker mount to magiskinit
This commit is contained in:
@@ -236,6 +236,7 @@ void MagiskInit::setup_tmp(const char *path) {
|
||||
|
||||
xmkdir(INTLROOT, 0711);
|
||||
xmkdir(DEVICEDIR, 0711);
|
||||
xmkdir(WORKERDIR, 0);
|
||||
|
||||
mount_preinit_dir(preinit_dev);
|
||||
|
||||
@@ -251,6 +252,9 @@ void MagiskInit::setup_tmp(const char *path) {
|
||||
|
||||
chdir(path);
|
||||
|
||||
// Prepare worker
|
||||
xmount(WORKERDIR, WORKERDIR, nullptr, MS_BIND, nullptr);
|
||||
|
||||
// Use isolated devpts if kernel support
|
||||
if (access("/dev/pts/ptmx", F_OK) == 0) {
|
||||
xmkdirs(SHELLPTS, 0755);
|
||||
|
||||
Reference in New Issue
Block a user