Remix.run Logo
eschaton 3 hours ago

It should just be a matter of producing a kernel and, if necessary, RAM disk that can be booted the same way as Linux.

jonhohle an hour ago | parent | next [-]

“just” is doing a lot of work in that sentence.

eschaton 27 minutes ago | parent [-]

Yes and no; kernels aren’t magic, and “change how this kernel is loaded to match how Linux does it” is actually a reasonable first assignment for an Operating Systems class at a top-tier school. (You’re basically just creating an alternative `main()` if you don’t need a RAM disk image from which to load drivers.)

cpach an hour ago | parent | prev [-]

Then one needs to launch it. Not sure if there are any lancher UIs out there, or if one has to write custom code for that.

eschaton 33 minutes ago | parent [-]

My point is that as long as OpenBSD can boot like Linux, you just have to tell whatever VM front-end you’re using that you’re booting a Linux but give it an OpenBSD kernel and RAM disk.

Traditionally BSD has booted very differently than Linux, because Linus adopted the same boot process as MINIX when he first developed it (since he was actually using the MINIX boot blocks at first).

BSD has historically used a bootstrap that understands V7FS/FFS and can load a kernel from a path on it. MINIX takes the actual kernel and RAM disk images as parameters so it doesn’t need to know about filesystems, and that tradition continued with Linux bootstraps once it was standalone.

Rediscover 15 minutes ago | parent [-]

Who else was rdev'ing the Linux kernel to tell it where the root ext2(?) partition was long before they were using RAM disks? Like with SLS or MCC?