dogeorg / dogeboxd

Dogebox system manager service
MIT License
1 stars 0 forks source link

Storage Overlay #71

Closed SomeoneWeird closed 2 weeks ago

SomeoneWeird commented 3 weeks ago

This contains a couple things, most importantly support for external devices to be used as a datadir overlay.

This also contains a couple of other API changes required for the new dpanel system config screen:

If a storage device is selected during setup, we write a $datadir/nix/storage-overlay.nix file that is optionally required by $datadir/nix/dogebox.nix. This file will mount the specified device over the --data-dir location specified on the CLI, allowing the user to still customise where the mount lives.

The disk specified will have a new GPT partition table written to it, and then a 100%-sized ext4 partition created.