Installation Procedure from a Live USB
Posted: Sat Nov 13, 2021 3:55 pm
Hello!
Bit of an open-ended question here:
My OS distribution includes a ramdisk containing programs, image files, etc. that make up the runtime environment. I semi-recently ported DOOM. This necessitates bundling the DOOM game data (DOOM1.WAD) into my ramdisk. To run DOOM, I first copy the DOOM1.WAD file from the ramdisk to the FAT filesystem on-disk. Then I go ahead and run it, pointing it to the on-disk game data.
I only need to copy the game data out of the ramdisk if it hasn't been copied already (i.e. on "first boot", though over the regular course of development I'm rebooting and formatting the HDD dozens of times). After the first copy, the game data is needlessly sitting around in the ramdisk. I'm wondering what a sensible 'installation procedure' would be, and am also wondering how maintaining an installation flow like this fits into the wipe-everything-and-test workflow that I assume is common to others besides myself.
Perhaps one way to go is for the OS to regenerate the ramdisk, minus the game data, at install time. It'll then write the new ramdisk to the UEFI disk partition, and later boots will boot from disk rather than from USB.
Bit of an open-ended question here:
My OS distribution includes a ramdisk containing programs, image files, etc. that make up the runtime environment. I semi-recently ported DOOM. This necessitates bundling the DOOM game data (DOOM1.WAD) into my ramdisk. To run DOOM, I first copy the DOOM1.WAD file from the ramdisk to the FAT filesystem on-disk. Then I go ahead and run it, pointing it to the on-disk game data.
I only need to copy the game data out of the ramdisk if it hasn't been copied already (i.e. on "first boot", though over the regular course of development I'm rebooting and formatting the HDD dozens of times). After the first copy, the game data is needlessly sitting around in the ramdisk. I'm wondering what a sensible 'installation procedure' would be, and am also wondering how maintaining an installation flow like this fits into the wipe-everything-and-test workflow that I assume is common to others besides myself.
Perhaps one way to go is for the OS to regenerate the ramdisk, minus the game data, at install time. It'll then write the new ramdisk to the UEFI disk partition, and later boots will boot from disk rather than from USB.