54 points · by jimmies · 8y ago · 20 comments
But there are different approaches to this: on one extreme you can boot minimalistic linux from PXE which does moral equivalent of "curl ... >/dev/sda" on the other end you can run from ramdisk. The ramdisk approach works very well, but is neccesarily limited by size of RAM.
For our anime conventions we have our own "linux distro", that consists of debian unstable with quite involved rewritten initramfs which obtains the root image from somewhere (file on USB storage, which can be optionally mounted directly, or downloads the image using HTTP) and pivot_root's into that. Being able to boot Linux on ThinkPad without any persistent storage to speak of and being able to use it completely offline (the whole infrastructure for this to happen is only on our internal LAN, not on any kind of WLAN) is somewhat magical.
For the end user - it's just some computers at the convention, a couple of computers in the lab, but I knew it felt really good to see a computer without storage pulling crazy tricks like that.
I have a 5-year-old i5 computer with 8GB of RAM that I use as a Hackintosh with dedicated passthrough GPU, USB root hub, and an SSD. Having dedicated GPU and USB root hub are for performance obviously, but having a dedicated SSD means I could just pull the SSD out and plug it into a genuine Apple computer and it will work just fine. I have only two SSDs and didn't want to waste one of them to be the host OS, so I decided I would just pull another to-RAM trick to boot the host OS from a slow USB drive and put the host OS in RAM. The "abstraction layer" costed me 1GB. Just got done today, and I'm quite pleased with it. Now I have a "shell" distro that abstracts away my underlying hardware and gives me macOS regardless of what hardware I run it on.
KVM/qemu are dreams come true.
The command
tellme root
would print out the root password for the public workstations.The command
tellme off
would spew insults at you.