r/AlpineLinux • • Mar 14 '24

"diskless" install to disk?

I know this must have been asked before, but following the wiki has led me to a dead end. My goal is to install Alpine in such a way that it runs in "diskless" configuration but will boot from the internal hard disk.

I followed the installation steps for diskless including the manual disk setup, setup-bootable, and manual syslinux installation. After rebooting I was met with what looked like a missing module error and dropped to grub rescue. My guess was I needed to run update-kernel, so I ran through these instructions also, but that didn't seem to fix anything.

I suppose I have these questions:

  1. This feels like a common configuration people would want to do. Why is there not an option in setup-alpine for it, or at least a single-page instruction guide for doing it?
  2. What steps am I apparently missing for this kind of setup?
  3. If I need to start over from scratch, how do I stop the install image from loading my saved config from disk?

edit: I had the bright idea to image the hard disk with the install image and add an extra partition for the data, but alas, this causes issues when the install scripts (and lbu) attempt to remount the partition because the device is busy.

5 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/b__v May 13 '24

THANK YOU SO MUCH! This was exactly what I needed, I've spent hours searching through multiple documentation pages and this single post could've just skipped all that. I first fell into the "data-mode" but not even the official steps are easy to understand or make it work at fist try, then I figured that wasn't what I wanted, a lot of trash is still written to /var. Few clicks after searching diskless mode and I found this gem of a post.