By editing init, how to change some locations of files?
1457384613gh opened this issue · comments
What I want is to achieve this picture,
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 coverinitrd.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,
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.
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.
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. I am asking
Huy Minh Bùi
andK
for how to mountESP:/EFI
into/mnt/efi
by usingkernel+initrd.img
withinit
edited first. And then similarly, conclude how to mountESP:/EFI/Bootloader/Linux_boot_partition
into/mnt/boot
withinit
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?