About-diskless-boot (Part 1) - concept and simple methods
Understanding Diskless installs
Concept of disk-less installs in Alpine Linux
- Diskless = RAM based installs = Running your OS from RAM
- Concept involves that post-boot there are no real persistent installs of files on disk. This means on next reboot packages(.apk) would be re-installed and re-configured.
- Concept has provisions(
lbu) to save user-modified config files that usually resides in /etc folder. These files are over-layed over file system on post-reboot. Saved configs come in effect and are used by applications when called.
Techniques employed
- Standard/Official installs.
- True diskless.
- Disk-less variants.
How to work on it(exploit), or make best use of it
Does it need upgrade or simple re-install?
Simple re-install by using newer ISO or creating boot-disk from it is faster/safer,
See: create a ram based basic bootable disk. [2] [3] [4] [5],
if an upgrade is needed see do's and don't below.
What part/portion of diskless installs needs backing-up?
Alpine Linux implements, Alpine local backup lbu, to take care of config/custom changes made.
Does usr-merge effect diskless installs?
See section "How to migrate?", here - 2025-10-01-usr-merge
How can I make diskless boot more useful?
Create what is needed repositories, Create-alpine-rescue-disk
Are there any recommended do's and don't for users?
See below
Do's
- Keep a check on
/usrfolder
du -csh /usr -> 810.2M /usr
- Keep a check on memory usage
free -m -> 450M
- Create/use SWAP disk if needed.
Don't
- Do not rush to update/upgrade.
- Always try to avoid edge in disk-less installs.
- Avoid upgrading stable setup to edge.
Is it possible to load the OS into ram at the ISO's boot prompt?
Not yet, but see AlpineLinux.True-diskless-boot.
Some diskless boot dramas'
- Standard/Official diskless boot - ISO/Boot-disk + RAM [5] [6]
- True-diskless-boot - closer to RAM
- Diskless-install-on-devices-with-2gb-ram - closer to Disk
- Diskless-install-on-devices-with-1gb-ram - more-closer to Disk
- I wanna be closer to Cloud/Net (#TODO)
- I wanna be closer to Sun (Icarus Mode) - not planned yet
Author
V.Krishn
Resources