Systemd 256.1 Addresses Complaint That 'systemd-tmpfiles' Could Unexpectedly Delete Your /home Directory (linux.slashdot.org)
from salarua@sopuli.xyz to technology@lemmy.world on 22 Jun 2024 21:07
https://sopuli.xyz/post/14094039

#technology

threaded - newest

victorz@lemmy.world on 22 Jun 2024 22:28 next collapse

Well that’s good… 😳

9tr6gyp3@lemmy.world on 22 Jun 2024 22:36 next collapse

Good god, thats a hell of a patch lol

Sanctus@lemmy.world on 22 Jun 2024 22:52 next collapse

I’m gonna be real. I dont think home directory files should handled by something named tmpfiles. I think something named tmpfiles should only handled volatile data as it is colloquially known. I get there’s a lot that can be considered that in home directories. But user data should be handled by something that is made for that and users inherently know by the name that this will mess your home directory. This only applies to monoliths and monoliths to be like systemd. Maybe you’re doing too much with a single program if your naming becomes problematic.

wagesj45@kbin.run on 22 Jun 2024 23:17 next collapse

I'm gonna be real. I dont think home directory files should handled by something named tmpfiles.

But... but... it was in the documentation! /s

What killed me about the whole thing was how defensive the dev was about the whole thing, basically calling the reporter a moron for running a command without extensive knowledge of the entire system. I don't care how good the documentation is, if open file proceeds to format your hard drive in some circumstances, you done goofed as a dev.

tias@discuss.tchncs.de on 23 Jun 2024 13:00 collapse

I agree his answer sucks, but perhaps the fault still lies with the distribution developers (who should know better), not the authors of systemd. In that context I can understand the resentment expressed by the dev. It’s not directed toward the end user but toward the distro developers, who have implemented systemd in a broken and dangerous way.

BestBouclettes@jlai.lu on 22 Jun 2024 23:25 next collapse

That first response was awful, like fuck you man, maybe I should read the doc but maybe your software should be better designed if it handles my data like that. Jesus Christ…

NekkoDroid@programming.dev on 22 Jun 2024 23:56 next collapse

I dont think home directory files should handled by something named tmpfiles.

The only reason its still called tmpfiles is because of backwards compatibility

BaroqueInMind@lemmy.one on 23 Jun 2024 02:38 collapse

Well, the back is my hand is compatible with the dev’s face. You don’t see me slapping people all willy-nilly.

NekkoDroid@programming.dev on 23 Jun 2024 14:11 collapse

I dunno, I don’t have a camera feed into your life. But considering that is the first thing you respond to a clarification it most certainly wouldn’t surprise me if you did.

RegalPotoo@lemmy.world on 23 Jun 2024 00:57 next collapse

Especially when “tmpfiles” is an existing term of art with a very specific meaning

SuperIce@lemmy.world on 23 Jun 2024 06:46 collapse

Tbf, this is something that only some distros do. Those distros should be reprimanded for handling home directories with the tmpfiles system, not systemd.

zingo@lemmy.ca on 23 Jun 2024 14:25 collapse

What distros are those?

lurch@sh.itjust.works on 23 Jun 2024 00:37 next collapse

this is just systemds way of telling you to listen to me when i say you gotta make backups

Deebster@programming.dev on 23 Jun 2024 02:21 collapse

Fixes catastrophic data loss, er, bug, er poorly documented featureuser error

Gotta love the Register