this post was submitted on 13 Jan 2025
347 points (93.9% liked)

Linux

49115 readers
1002 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I recently took up Bazzite from mint and I love it! After using it for a few days I found out it was an immutable distro, after looking into what that is I thought it was a great idea. I love the idea of getting a fresh image for every update, I think for businesses/ less tech savvy people it adds another layer of protection from self harm because you can't mess with the root without extra steps.

For anyone who isn't familiar with immutable distros I attached a picture of mutable vs immutable, I don't want to describe it because I am still learning.

My question is: what does the community think of it?

Do the downsides outweigh the benefits or vice versa?

Could this help Linux reach more mainstream audiences?

Any other input would be appreciated!

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 6 days ago* (last edited 6 days ago) (1 children)

Since the idea is that the "root partition" is immutable, serious question:

How do you fix a hardware config issue or a distro packaging / provision issue in an immutable distro?

Several times in my Linux history I've found that, for example, I need to remove package-provided files from the ALSA files in /usr/share/alsa in order for the setup to work with my particular chipset (which has a hardware bug). Other times, I've found that even if I set up a custom .XCompose file in my $HOME, some applications insist on reading the Compose files in /usr/share/X11/locale instead, which means I need to be able to edit or remove those files. In order to add custom themes, I need to be able to add them to /usr/share/{icons,themes}, since replicating those themes for each $HOME in the system is a notorious waste of space and not all applications seem to respect /usr/local/share. Etc.

Unless I'm mistaken on how immutable systems work, I'm not sure immutable systems are really useful to someone who actually wants to or needs to power user Linux, or customize past the "branding locking" that environments like Gnome have been aiming for for like a decade.

[–] [email protected] 1 points 4 days ago (1 children)

My guess would be: have an additional overlay filesystem on top of your immutable root and apply all your fixes to it.

[–] [email protected] 2 points 3 days ago

On the one hand sounds sensible, on the other hand I wonder if that's possible when wanting to apply things that need to take place as early in boot as possible (eg.: modprobe options for a module, apparmor profiles, ...).

[–] [email protected] 1 points 6 days ago* (last edited 6 days ago)

turn off. immutable

[–] [email protected] 132 points 1 week ago (4 children)

Immutable, doesn't mean extreme secure. It's a false sense of security.
It could be more secure.
But during a runtime, it is possible to overwrite operational memory, mask some syscalls, etc.

That's my 3 cents.

[–] [email protected] 18 points 1 week ago

Fully agreed. On almost any atomic distro, /home/user is writeable like usual, so any attacker is able to persist itself by editing ~/.bashrc and putting a binary somewhere.

[–] [email protected] 13 points 1 week ago

I didn't know that inflation can affect idiomatic expressions.

load more comments (2 replies)
[–] [email protected] 68 points 1 week ago (5 children)

It's definitely great for the mainstream. Think of Linus Sebastian who has somehow broken every OS except for SteamOS.

It's not great for me who uses Arch Linux btw with the expectation that if the system doesn't break on its own, then I will break it myself.

[–] [email protected] 1 points 6 days ago (1 children)

And anybody who thinks that Linus doesn't look for those ways to break Linux is deluding themselves. He's a fucking asshole.

[–] [email protected] 2 points 4 days ago

He can be an asshole, but I believe finding bugs is part of his job.

Would you rather have him find them and complain to a community who might know what they could be, or someone else who will just complain and buy a MacBook instead?

load more comments (4 replies)
[–] [email protected] 57 points 1 week ago (2 children)

Immutable distros are great for applications where you want uniformity for users and protections against users who are a little too curious for their own good.

SteamOS is a perfect use case. You don't want users easily running scripts on their Steam Decks to install god knows what and potentially wreck their systems, then come to Valve looking for a fix.

Immutable distros solve that issue. Patches and updates for the OS roll out onto effectively identical systems, and if something does break, the update will fail instead of the system. So users will still have a fully functional Steam Deck.

If you're not very technical, or you aren't a power user and packaged apps like Flatpaks are available for all your software, then go for it. I prefer to tinker under the hood with my computers, but I also understand and except the risk that creates.

Immutable distros are a valuable part of a larger, vibrant Linux ecosystem IMO.

[–] [email protected] 19 points 1 week ago (1 children)

Immutable are the ultimate tinkerer's distros. It's just a different way of tinkering. True tinkering in immutable means creating your own image from the base image and that allows you to add or remove packages, change configs, services, etc.

Example: you create your own image. You decide you want to try something, but you're being cautious. So you create a new image based on your first with your changes. You try it out and you don't like it or it doesn't work for some reason, you can just revert back to you other image.

Another thing worth mentioning, with these distros, you can switch between images at will. I'm new to Linux as my daily driver desktop OS, and I've rebased three times. It's really cool to be able to do that.

[–] [email protected] 13 points 1 week ago (2 children)

Don't know why this would be downvoted. Atomic distro's are a tinkerers paradise, as all of it can be done fearlessly. I can make stupid changes to configurations that I don't understand on NixOS, then when things break, simply revert the git commit and rebuild. (Or reboot to the last build if I broke it bad enough).

load more comments (2 replies)
[–] [email protected] 13 points 1 week ago* (last edited 1 week ago)

So Bazzite basically is an immutable 3rd-party SteamOS. It was originally designed for handhelds (though has desktop images now) and includes the Steam Deck's gamemode package. That means it has the same interface, but working on a Legion Go or an Ally X. If anyone here has* any of those three you should seriously check it out!

The other thing as well is that more often than not, the update will succeed and you won't figure out until the next boot that something is wrong. However, Bazzite has a rollback tool so you can just change back to the previous image, reboot again and get to gaming.

That's the best reason for immutable for gaming IMO. I don't want to be fucking around with the OS when I'm in the mood to game. Being able to quickly rollback and jump into things in ~10 minutes or less is how it should be.

[–] [email protected] 43 points 1 week ago (1 children)
Immutable vs Mutable

weird        normal
[–] [email protected] 29 points 1 week ago (1 children)

More like familiar and unfamiliar

load more comments (1 replies)
[–] [email protected] 27 points 1 week ago* (last edited 1 week ago) (2 children)

NixOS is kinda the best of both worlds, because it does everything in a way that is compatible with an immutable fs, but it doesn’t force you into abiding by immutability yourself.

You can always opt into immutability by using Impermanence, but I’ve never seen any reason to.

Edit: That said, the syntax has a steep learning curve and there are tons of annoying edge cases that spawn out of the measures it takes to properly isolate things. It can be a lot to micromanage, so if you’d rather just use your system more than tinker with it, it may not be a good fit.

load more comments (2 replies)
[–] [email protected] 26 points 1 week ago* (last edited 1 week ago) (3 children)
  • You can still apply updates live, e.g. on Bazzite (Fedora Atomic) with the --apply-live tag (or however it's spelled).
  • The root partition isn't read only per se, but you have to change the upstream image itself instead of the one booted right now. You can use the uBlue-Builder for example to make your own custom Bazzite spin just for you if you want.
  • Both aren't inherently secure or insecure. It's harder to brick your system, yeah, for sure, but you can still fuck up some partitions or get malware. It's just better because everything is transparently identifiable (ostree works like git), saved (fallback images), containerised and reproducible.
  • And you can still install system software, e.g. by layering it via rpm-ostree. Or use rootful containers in Distrobox and keep using apt or Pacman in there.
load more comments (3 replies)
[–] [email protected] 21 points 1 week ago (5 children)

Immutable ≠ atomic

Bazzite is atomic (not immutable), same with Silverblue and other Fedora variants (they're all atomic, even on their main page it says atomic). It's kinda misleading ngl

load more comments (5 replies)
[–] [email protected] 21 points 1 week ago* (last edited 1 week ago) (18 children)

Secure != stable Immutable distros aren't always more secure but rather more stable and hard to break Also btw nixos can apply updates without rebooting

load more comments (18 replies)
[–] [email protected] 19 points 1 week ago (2 children)

I personally vastly prefer mutable distros for my own system, but I understand the appeal for those who like them. As long as mutable distros remain an option I don't mind immutable distros.

load more comments (2 replies)
[–] [email protected] 18 points 1 week ago* (last edited 1 week ago) (10 children)

I heard both flatpak and immutability are obstacles to developers. How bad is it really?

I've had NixOS absolutely refuse to run some compiler toolchain I depended upon that should've been dead simple on other distros, I'm really hesitant to try anything that tries to be too different anymore.

load more comments (10 replies)
[–] [email protected] 16 points 1 week ago (6 children)

I remain interested in the immutables or atomic distros because I know a lot of smart people that swear by them.

I also don't try them just yet because I know a lot of dumb people like me that end up breaking a lot of stuff before quitting them altogether.

They could be amazing and just not perfected yet or they may be a meme and no one's proved it outright just yet. Will be lurking this thread either way lool :D

load more comments (6 replies)
[–] [email protected] 15 points 1 week ago* (last edited 1 week ago) (5 children)

I am a big fan of breaking my system

load more comments (5 replies)
[–] [email protected] 12 points 1 week ago

what does the community think of it?

It's important to note how the Linux community interacts with change. In the past, whenever a change has been significant enough to influence individual workflows, it often provoked strong reactions. This was evident when systemd was introduced and adopted by distros like Arch and Debian. Even though systemd was arguably superior in essential aspects for most users, it failed to meet the needs of at least a vocal minority. Consequently, community endeavors were set up to enable the use of Debian or Arch without systemd.

Similarly, the introduction of immutable distributions seems to upset some people, though (at least to me) it's unjustified. Immutable distributions don't necessarily alter the traditional model. For instance, the existence of Fedora Silverblue doesn't impose changes on traditional Fedora; let alone Arch or Debian.

But, overall, most Linux users aren't bothered by it. Though, they often don't see a use for themselves. Personally, I attribute this at least in part to existing misconceptions and misinformation on the subject matter. Though, still, a minority^[1]^ (at best ~10%) actually prefers and uses 'immutable' distros.

Do the downsides outweigh the benefits or vice versa?

Depends entirely on what you want out of your system. For me, they absolutely do. But it's important to note that the most important thing they impose on the user is the paradigm shift that comes with going 'immutable'. And this is actually what traditional Linux users are most bothered by. But if you're unfamiliar with Linux conventions, then you probably won't even notice.

As a side note, it's perhaps important to note that the similarities between traditional distros are greater than the similarities between immutable distros. Also, Fedora Atomic is much more like traditional Fedora than it is similar to, say, openSUSE Aeon or Vanilla OS. Grouping them together as if they are a cohesive group with very similar attributes is misleading. Of course, they share a few traits, but overall, the differences are far more pronounced.

Therefore, it is a false dichotomy to simply label them as traditional distros versus immutable distros. Beyond these names, which we have assigned to them, these labels don't actually adequately explain how these systems work, how they interact, how their immutability is achieved (if at all), what underlying technologies they use, or how they manage user interactions. The implications of the above. Etc.

Could this help Linux reach more mainstream audiences?

The success of the Steam Deck and its SteamOS are the most striking and clear proof of this. So, yes. Absolutely.


  1. Not accounting SteamOS users.
[–] [email protected] 11 points 1 week ago

I think they're great. I've got two Linux newbies running some Ublue variant with no issues

load more comments
view more: next ›