Best Method for moving "/" to ramfs?
I've a project where it would be handy to have my system boot up with "/" being memory-based. Unfortunately, doesn't seem to be a lot of people doing this, so, not a lot of useful hits from Google. Basically, I've found two approaches: one (several permutations, actually) that boots to disk then uses some pivot_root trickery; one that calls busybox from initramfs and lets busybox do the heavy-lifting (yeah, the linked doc was CO7 but was testing on that before undertaking the additional effort to make a guestfish-compatible RH7 image-file).
The
pivot_rootpivot_rootThe busybox method seemed cleaner/much easier to script-out. Unfortunately, its ability to interface with block-devs is a bit "absent". Specifically, to get any of my block devices to show up (so that things like
fdisk/dev/sdNAny way, trying to find a good method for shoving / into RAM without provoking systemd and/or device-management. Anyone got one? Hoping I don't have to waste time chasing down how to isoboot just to get / into RAM.
Responses