emmett1 / mkinitrd

initrd generator
5 stars 4 forks source link

end Kernel panic - not syncing: No working init found. #2

Open minorikawafuso opened 11 months ago

minorikawafuso commented 11 months ago

I followed every singe step in creating LiveCD and it seems not working. My LFS is working on my host machine, but not LiveCD My kernel version is 6.1.11

minorikawafuso commented 11 months ago

fixed by increase virtual memory to 4GB

imycroft commented 5 months ago

fixed by increase virtual memory to 4GB

What do you mean by increase virtual memory to 4GB, because i have the same issue.

emmett1 commented 5 months ago

fixed by increase virtual memory to 4GB

What do you mean by increase virtual memory to 4GB, because i have the same issue.

You tried with LFS? Can you try extract the initramfs then check whether /bin/sh exist?

imycroft commented 5 months ago

fixed by increase virtual memory to 4GB

What do you mean by increase virtual memory to 4GB, because i have the same issue.

You tried with LFS? Can you try extract the initramfs then check whether /bin/sh exist?

The problem was that the initrd did not include the symbolic links: bin-> usr/bin lib-> usr/lib (for this link, I copied everything in lib to usr/lib, I then deleted lib, and created the symbolic link.) I added them, and now it is working! Thanks for the script.