this post was submitted on 24 Jul 2024
513 points (97.8% liked)

linuxmemes

20753 readers
1315 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ChojinDSL@discuss.tchncs.de 227 points 1 month ago (31 children)

Immutable in this context refers to an OS that can't be changed while running. Steam deck does something like that. Basically the all of the OS system files are read only, so that the user or some malware can't Bork the system. The only parts that are writable are the users profile directory and the logs.

You can still receive updates and install apps. It's just that that's handled a bit differently than with a standard OS.

E.g. it could be that the OS provider only issues complete updates, and then you either have to reboot. This is the case with steam os on the steam deck. The System portion of the OS is mounted read only during use.

[–] davidgro@lemmy.world 72 points 1 month ago (3 children)

Another prominent example is Android. Sure system apps can be upgraded individually -- by storing the new version in a restricted part of the 'user' partition -- but otherwise the system files are strictly read only until a new 'image' is 'flashed' to it by the update system or a power user with debugging tools. In the past, a common use of root capabilities was to remount the system partition as read/write and then change files on it directly. It's more complex now.

That's also why system apps can be rolled back to the stock version, and can sometimes be disabled, but can't be directly uninstalled like user apps. Only the updated version on the user partition (if there is one) can be removed.

[–] steersman2484@sh.itjust.works 11 points 1 month ago (1 children)

Aren't apps better compareable to something like flatpack and this is the reason why they are updateable during runtime?

[–] davidgro@lemmy.world 14 points 1 month ago (1 children)

Sure they are, but system apps are still installed in the immutable space initially, which is the important thing, that updates to it can't go there.

I don't know how desktop immutable systems deal with that.

[–] flying_sheep@lemmy.ml 3 points 1 month ago

You can update the whole base image. Vanilla OS and SteamOS have an A/B partition that holds the currently-in-use image and can also hold a to-be-used image.

Updating works by adding the to-be-used image, setting a configuration option that tells the system to boot that one, and on the next boot it'll check if the new one is bootable, then either boot it and mark it as working, or boot into the old one and display an error about how out wasn't able to boot into the new one.

There's smart things going on like maybe hard linking files that didn't change between the two images and therefore saving space and copying time.

The result is that you never have a broken system, but you can still frequently update the base image.

load more comments (1 replies)
load more comments (28 replies)