Repository navigation
Updating a container to a newer rootfs without losing its settings? #380
chandr1000
started this conversation in
Ideas
Replies: 1 comment 2 replies
|
For your specific problem, only a Treat a Droidspaces container as a real Linux server. Not like a Docker container that can't persist its changes unless you added volumes. So, every time you do something inside a Droidspaces container, it's going to sit there permanently, just like you modify a real Linux server. Also, in our rootfs repo, only the packages are getting updated. Nothing more :) We don't add any new packages or features either. So, all you have to do is upgrade the distro from your package manager, just like you do in a real Linux distro :) |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey! First off, Droidspaces is awesome. I went down a rabbit hole last week: "can my rooted Redmi Note 15 5G actually run Fedora CoreOS, for science?" and the answer turned out to be "yes", with Docker running inside it and everything. Still kind of amazed.
One bump I hit while playing with this: I build my rootfs through the rootfs-builder CI, so every rebuild publishes a shiny new rootfs version. And updating my existing container means: export => uninstall => install the new one => re-type every single setting in the wizard (hostname, net_mode, port_forwards, sparse size, all the toggles...). I nearly locked myself out by fat-fingering
port_forwards, SSH is the only way into that thing.Then I poked around and noticed all that info already lives in
container.config, right next to the rootfs inContainers/<name>/. And the app already does things that are basically this:So... would a long-press "Replace rootfs" action make sense? Stop the container, reuse the same extraction path Install already uses, leave
container.configuntouched. Or the even-lazier version: when the install wizard sees a name that already exists, offer "keep existing settings" and pre-fill the form from the old config.One safety thought: extract the new rootfs fully and only rename it into place on success, so a bad download can't nuke a working container (same vibe as the v7.1.0 fsync-then-rename fix for container.config).
Someday-maybe: rootfs-builder could stamp a tiny version file into the image (like
/etc/droidspaces-rootfs-version) so the Repository sheet could badge "update available". Not part of the ask, just a thought.My setup, if anyone's curious: chandr1000/Droidspaces-rootfs-builder only contains one Fedora CoreOS entry (Docker CE + compose, key-only SSH), currently serving "hello world" from a busybox container to my whole Wi-Fi network. Happy to test anything on GKI (HyperOS 2, SukiSU-Ultra root).
Thanks for building this thing!
All reactions