HuskyDG / initrd-magisk

Integrate Magisk into Android-x86 project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

1457384613gh opened this issue · comments

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.

make PR if you want :)

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

Pull request...

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

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

Yes.

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

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

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?

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.

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?