Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

By editing init, how to change some locations of files? #25

Open
1457384613gh opened this issue Feb 4, 2023 · 11 comments
Open

By editing init, how to change some locations of files? #25

1457384613gh opened this issue Feb 4, 2023 · 11 comments

Comments

@1457384613gh
Copy link
Contributor

1457384613gh commented Feb 4, 2023

What I want is to achieve this picture,

mmap_1675497971976

The advantage of this is

  • to avoid editing android.cfg over and over again, if Android x86 updates;
  • to avoid copying initrd.img (initrd-magisk.img renamed first) to cover initrd.img (the real not having been made a backup, yet), by mistake;
  • to avoid .img files into $SRC are too many to be recognized immediately rightly, only to be deleted or covered by mistake;
  • to avoid hesitating for a long time to tangle which .img file should be renamed at first.

And then I create a fork to edit,

1

After building, I download to try.
It can boot, but seems not to mount boot-magisk.img.
It must be something I haven't edited yet.

Could you tell me what else I should edit?

I will appreciate it if you would help me about that.

@1457384613gh 1457384613gh changed the title # By editing init, how to change some locations of files? By editing init, how to change some locations of files? Feb 4, 2023
@1457384613gh 1457384613gh changed the title By editing init, how to change some locations of files? By editing init, how to change some locations of files? Feb 4, 2023
@1457384613gh 1457384613gh changed the title By editing init, how to change some locations of files? By editing init, how to change some locations of files? Feb 4, 2023
@HuskyDG
Copy link
Owner

HuskyDG commented Feb 4, 2023

make PR if you want :)

@1457384613gh
Copy link
Contributor Author

PR?
What?
I even don't know how I haven't done enough.

@HuskyDG
Copy link
Owner

HuskyDG commented Feb 4, 2023

Pull request...

1457384613gh added a commit to 1457384613gh/initrd-magisk that referenced this issue Feb 4, 2023
@1457384613gh
Copy link
Contributor Author

#26

@HuskyDG
Copy link
Owner

HuskyDG commented Feb 5, 2023

You mean we should leave stock initrd and boot-magisk in /boot ?

@1457384613gh
Copy link
Contributor Author

You mean we should leave stock initrd and boot-magisk in /boot ?

Yes.

HuskyDG pushed a commit to 1457384613gh/initrd-magisk that referenced this issue Feb 5, 2023
HuskyDG pushed a commit to 1457384613gh/initrd-magisk that referenced this issue Feb 5, 2023
HuskyDG pushed a commit to 1457384613gh/initrd-magisk that referenced this issue Feb 5, 2023
@1457384613gh
Copy link
Contributor Author

1457384613gh commented Feb 5, 2023

By the way, another question.
I have checked that [boot-magisk.img] is R/W and into a f2fs partition.
截图 2023-02-05 15-21-06
I have tried over and over again. It always shows that. 😭😭😭
Screenshot_20230205-153502_Magisk

@HuskyDG
Copy link
Owner

HuskyDG commented Feb 5, 2023

Work fine for me ¯_(ツ)_/¯
If you can't, it is because of f2fs

@1457384613gh
Copy link
Contributor Author

Work fine for me ¯_(ツ)_/¯
If you can't, it is because of f2fs

I tried ext4. It could work.

The kernel+initrd.img can actually mount f2fs.

What's the problem?

@1457384613gh
Copy link
Contributor Author

1457384613gh commented Feb 5, 2023

I have another idea. I have adapted a Bootloader.
mmap_1675588169436
I am asking Huy Minh Bùi and K for how to mount ESP:/EFI into /mnt/efi by using kernel+initrd.img with init edited first.
And then similarly, conclude how to mount ESP:/EFI/Bootloader/Linux_boot_partition into /mnt/boot with init edited first.
ESP is FAT16/32; It won't show "/dev/block/loop2 is read only", I think.
I will try slowly.

@vinphan
Copy link

vinphan commented Nov 21, 2023

I have another idea. I have adapted a Bootloader. mmap_1675588169436 I am asking Huy Minh Bùi and K for how to mount ESP:/EFI into /mnt/efi by using kernel+initrd.img with init edited first. And then similarly, conclude how to mount ESP:/EFI/Bootloader/Linux_boot_partition into /mnt/boot with init edited first. ESP is FAT16/32; It won't show "/dev/block/loop2 is read only", I think. I will try slowly.

Hvae you sucessfully installed Magisk on Bliss OS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants