Anyone made a DIY immutable distro?
from possiblylinux127@lemmy.zip to linux@lemmy.ml on 02 Sep 2024 21:32
https://lemmy.zip/post/22038284

I know you can build a Debian system with debootstrap. Using debootstrap it should be possible to create a custom image. The main partition could be read only with separate mounts for anything that need to be read write.

Using containers it should be possible to create a filesystem image. I think the tricky part it testing the image and then updating the existing partition. Maybe some custom ostree tool could do the trick. If not there is always rsync and btrfs snapshots.

#linux

threaded - newest

hydrogen@lemmy.ml on 02 Sep 2024 21:43 next collapse

Does it have to be Debian based? Otherwise uBlue is a great project!

theshatterstone54@feddit.uk on 02 Sep 2024 22:50 next collapse

uBlue is good, but only if you follow the official templates. I was following some other thing which did things very differently and my custom iso ended up broken i.e Anaconda was crashing and installation was impossible.

Edit: the thing is called Bluebuild. I’d recommend to steer clear of Bluebuild and just using the official template on Github. I’m still yet to do that myself but it seems like it might actually work, unlike Bluebuild.

possiblylinux127@lemmy.zip on 02 Sep 2024 23:20 next collapse

I use Silverblue on my main machine. I want something lightweight for my other machine.

hydrogen@lemmy.ml on 03 Sep 2024 05:13 next collapse

Well, uBlue can be as light as you want it to be.

Some other projects I’m thinking of:

  • VanillaOS (Debian based)
  • NixOS
  • Fedora CoreOS
  • uCore (based on CoreOS)
  • openSUSE MicroOS
  • EndlessOS (Debian based)
  • blendOS

Is it for a personal computer or a server?

thayerw@lemmy.ca on 03 Sep 2024 16:41 collapse

Obviously, lightweight is open to some interpretation but Silverblue can be made very lightweight by simply uninstalling the default flatpaks. You’ll be left with a very basic GNOME shell and greeter, without any of the common GNOME extras. From there you could easily install your own window manager, greeter, and whatever apps you need.

linearchaos@lemmy.world on 02 Sep 2024 23:51 collapse

I’m using NixOS, it’s really freaking awesome and super repeatable but it’s also like smashing myself in the face with a brick every time I want to do something slightly unusual.

daddyjones@lemmy.world on 02 Sep 2024 21:47 next collapse

Also, not Debian, but github.com/cleanroom-team/cleanroom is very a DIY unusable system. I didn’t build (most) off it, but I use it on my daily driver and a couple of other machines.

AbidanYre@lemmy.world on 02 Sep 2024 21:53 collapse

unusable

I hope that’s autocorrect?

linearchaos@lemmy.world on 02 Sep 2024 23:49 collapse

That’s like a whole nother level of immutable.

swab148@lemm.ee on 03 Sep 2024 01:57 collapse

Can’t break it if you can’t use it!

aStonedSanta@lemm.ee on 03 Sep 2024 07:15 collapse

I use unusable Linux btw.

cerement@slrpnk.net on 03 Sep 2024 00:57 next collapse

jlsalvador@lemmy.ml on 03 Sep 2024 01:43 next collapse

Hi!

I made my own inmutable distro using buildroot (buildroot.org): simplek8s.org

This distro is just an AIO kernel image that will bootstrap everything in RAM. You can mount additional devices for data persistence (for example you can mount your storage in /var).

[deleted] on 03 Sep 2024 04:26 collapse

.

deadcade@lemmy.deadca.de on 03 Sep 2024 07:28 collapse

mount -o remount,ro /