mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 18:57:37 +00:00
Create /dev
on stub cpio
This commit is contained in:
parent
4eb71830b3
commit
3ae7344747
@ -209,6 +209,10 @@ bool LegacySARInit::mount_system_root() {
|
||||
backup_files();
|
||||
|
||||
LOGD("Mounting system_root\n");
|
||||
|
||||
// there's no /dev in stub cpio
|
||||
xmkdir("/dev", 0777);
|
||||
|
||||
strcpy(blk_info.block_dev, "/dev/root");
|
||||
|
||||
do {
|
||||
@ -250,7 +254,6 @@ mount_root:
|
||||
switch_root("/system_root");
|
||||
|
||||
// Make dev writable
|
||||
xmkdir("/dev", 0755);
|
||||
xmount("tmpfs", "/dev", "tmpfs", 0, "mode=755");
|
||||
mount_list.emplace_back("/dev");
|
||||
|
||||
|
@ -39,6 +39,7 @@ void FirstStageInit::prepare() {
|
||||
}
|
||||
|
||||
void LegacySARInit::first_stage_prep() {
|
||||
xmkdir("/data", 0755);
|
||||
xmount("tmpfs", "/data", "tmpfs", 0, "mode=755");
|
||||
|
||||
// Patch init binary
|
||||
|
Loading…
x
Reference in New Issue
Block a user