Article 51V5F Linux Kernel 5.6.2: "No init found. Try passing init=bootarg"

Linux Kernel 5.6.2: "No init found. Try passing init=bootarg"

by
DapperDeer
from LinuxQuestions.org on (#51V5F)
Hi there,

I'm being tasked with creating a secure boot chain for my work. I work in a heavily regulated field and as such, our systems are required that on each boot up, the filesystem is checked for integrity. Back in Windows XP days, we achieved this by having our boot process as follows: boot -> GRUB -> Linux Kernel -> Integrity Checks (if successful)-> Kexec into grub4dos -> Windows. For Windows 7, we had an entirely different boot and verification process.

However, now that we're trying to move to Windows 10, I've been tasked with essentially updating our legacy boot process. That said, there is some context I feel you should know: I graduated college not even a year ago, so there's still a butt-ton I don't understand yet. I'm trying to piece things together as I go along.

I've pulled and built the latest, stable Linux kernel (5.6.2) and have been able to get GRUB to try to boot into it. I'm currently stuck at a BusyBox shell command line where I believe I'm in initramfs, at least, that's what the CLI displays. When running the 'env' command, one of the variables, "REASON" says "No init found. Try passing init= bootarg."

Should my Googling be believed, I've got a corrupted filesystem. However, because this is a kernel that I compiled myself, I truly believe that I'm missing files and/or have set things up incorrectly.

Currently I'm doing all my work in VMs, so I'm able to mount the "drive" that the Linux Kernel is on in a working Ubuntu VM and modify it as need be.

One thing I am a bit confused on is, in this BusyBox shell, invoking 'ls' doesn't display the files/directories that I expect. That is, when having mounted the "drive" in my Ubuntu VM, the directories and files displayed there are different than the ones I get when I 'ls' in the BusyBox shell. I imagine this is because I'm "in" initramfs, but I'm unsure how to navigate myself around and whether or not adding/modifying /etc/fstab and /sbin/init is useful at all because of this.

Any advice would be greatly appreciated.
Thanks.latest?d=yIl2AUoC8zA latest?i=I5Lhe6Eza34:f5M5c4NeLJg:F7zBnMy latest?i=I5Lhe6Eza34:f5M5c4NeLJg:V_sGLiP latest?d=qj6IDK7rITs latest?i=I5Lhe6Eza34:f5M5c4NeLJg:gIN9vFwI5Lhe6Eza34
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments