📚 Flashing root drive while booted into RAM?
I have an ARM-based Pinebook Pro laptop which comes bundled with Manjaro Linux.
Based on what I am reading, these devices cannot boot from USB keys. They can only boot from a microSD card or the internal eMMC storage.
This is a problem, as I would like to install Void on it and do not have access to a MicroSD card. I could get one, but I had another bizarre idea I'd like to explore for the heck of it.
Would it theoretically be possible to do the following:
- While booted into Manjaro, download the Void PBP ARM image and drop it onto a USB flash drive.
- Separately, create a very lightweight kernel/initrd/busybox combo. Drop it into /boot.
- Set the bootloader to boot from the new combo, with a kernel parameter to copy everything into RAM (like some liveusb's/livecd's do).
- Boot from that combo. While running entirely in RAM, mount the USB flash drive and flash the internal eMMC storage with the Void image.
I am aware that this would be a one-shot thing, and if anything goes wrong it will render the internal storage completely unbootable.
Still, would something like this be possible? If yes, are there any guides or blogs on how to accomplish something like this?
[link] [comments] ...