FYI, there is a bug in systemd. So, running: "systemd-tmpfiles --purge" will delete your /home/ in systemd version 256. #linux
Source: https://mathstodon.xyz/@bremner/112615591101488528 and https://x.com/DevuanOrg/status/1802997574695080067
FYI, there is a bug in systemd. So, running: "systemd-tmpfiles --purge" will delete your /home/ in systemd version 256. #linux
Source: https://mathstodon.xyz/@bremner/112615591101488528 and https://x.com/DevuanOrg/status/1802997574695080067

> I am a bit sceptical on the source
David Bremner is Debian contributor and does QA for multiple packages, including graphiz, and LaTeX related packages, as well as @darktable
The name of the command is stupid, it's not about cleaning "temporary" files, and it should have been made differently, to make it clear..
On the other hand, running random commands without understanding it, isn't a good idea either.
@nixCraft A bug in systemd? Interesting.
Is something that is clearly stated in the manual page really a bug? Or do we only consider it a bug because it is in systemd?
I won't tolerate this kind of argumentation in my timeline.
--purge is a new option, it was not there before. It is not a breaking change, and if there is a new option, either read the documentation, or learn from your mistakes.
In any case, don't blame your lack of responsibility on others.
systemd version the issue has been seen with 256 Used distribution Debian Unstable Linux kernel version used 6.8.12-amd64 CPU architectures issue was seen on x86_64 Component systemd-tmpfiles Expec...
@bob_zim @nik @allpoints @nixCraft Should probably say something like "deletes files that *would be* created by a tmpfiles.d/ rule" as well as a warning. Since it'll delete things it had no hand in creating.
Saw someone mention that they should have renamed it from -tmpfiles back in 2019 when the scope expanded to non temporary files.
@nik @allpoints @nixCraft I'd count "wiping all user data in a command labeled \"tmpfiles\" when the documentation DOES NOT SAY IT WILL DO THIS" as a failure, considering you can still make this mistake if you read the documentation, as you requested people do first.
The documentation is also more than slightly obtuse in general, as pointed out in the bug thread. It reads like first-pass btrfs documentation. https://github.com/systemd/systemd/issues/33349#issuecomment-2169581823
systemd version the issue has been seen with 256 Used distribution Debian Unstable Linux kernel version used 6.8.12-amd64 CPU architectures issue was seen on x86_64 Component systemd-tmpfiles Expec...
@bremner yeah, Q just means create, it should not get cleaned up with this config alone...
@nixCraft This is why a tried and true classic Unix init system works. Fewer binaries, typically no need to wait for a binary patch, sys.admins can edit rc files to fix (break) at will.
Do one task and do it well.
@alpinelinux, not running #systemd because it's too bloat: 💅💅
My fix for #33349, alternative for #33353 that tries to properly address things. This attacks the problem on three fronts: We refuse to run --purge without specification of at least one tmpfiles.d...
Binary package hint: upstart Summary: initctl start mounted-tmp erased all my data in / I am running a lucid installation in a linux-vserver instance. While fiddling with the really annoing issues regarding upstart and linux-vserver, I executed initctl start mounted-tmp to test if the script was working correctly. The script took quite long, and after it finished, I discovered that it did not only clean /tmp, but all existing files on the whole machine. My guess is that the variable $MOU...
@yrrsinn though that upstart problem was fixed the next day and wasn’t a deceptively documented feature but instead internal behavior that could only be triggered by copying a command-line.
I consider the systemd-tmpfiles footgun to be much worse.
Even docker warns you and asks for confirmation before pruning user-data.
@nixCraft
systemd version the issue has been seen with 256 Used distribution Debian Unstable Linux kernel version used 6.8.12-amd64 CPU architectures issue was seen on x86_64 Component systemd-tmpfiles Expec...
@nixCraft This link alone shows what a crapshow SystemD is.
UNIX philosophy which Linux had inherited would do one thing with a binary, and do that well.
Here, command has been morphed beyond its name by the developers and definitely beyond recognition, and it's our fault thinking otherwise.
https://github.com/systemd/systemd/issues/33349#issuecomment-2168796597
systemd version the issue has been seen with 256 Used distribution Debian Unstable Linux kernel version used 6.8.12-amd64 CPU architectures issue was seen on x86_64 Component systemd-tmpfiles Expec...
@nixCraft FYI the Devuan project is in mastodon too: https://toot.community/@devuan/112637698286112043
no need to link to the space-karen's site
Attached: 1 image systemd-tmpfiles, deleting /home "systemd-tmpfiles --purge" will delete /home in systemd 256 tested with systemd-tmpfiles --dry-run --purge on #debian