“Systemd is the future”

Initially the bug report was shot down by systemd developer Luca Boccassi of Microsoft with:

So an option that is literally documented as saying “all files and directories created by a tmpfiles.d/ entry will be deleted”, that you knew nothing about, sounded like a “good idea”? Did you even go and look what tmpfiles.d entries you had beforehand?

Maybe don’t just run random commands that you know nothing about, while ignoring what the documentation tells you? Just a thought eh"

Good devs, good product, I’m really excited about our shitty, shitty future.

chemicalwonka,
@chemicalwonka@discuss.tchncs.de avatar

Runit is simpler and more aligned with Unix and Kiss philosophy but unfortunately the major distros didn’t adopt it

lemmyvore,
dukatos,

Or use Artix…

thejackimonster,
@thejackimonster@wehavecookies.social avatar

@nick I don't know. I can understand both sides.

Users searching for solutions of their problems, stumbling upon a new functionality and test it out without doing what it does.

Developers specifying what it does and therefore expect people would know what they are doing.

Anyway a compromise got merged to make it more difficult for users to accidentally mess up. Which is probably good. But I don't think you need to handhold users all the time...

palordrolap,

This whole saga reminds me of the time I somehow ended up with Windows 9x's "Recent Documents" feature pointed at the root of a drive, so when I pushed the button to "clear recent documents" it dutifully started deleting all the files on the drive.

At the time, the "Recent Documents" feature created shortcuts to, as you might guess, recently opened documents and put them in a user folder specifically for that purpose. Clearing them was only supposed to remove the shortcuts.

Or perhaps more relevantly, that one Steam bash script that could delete things it shouldn't under some very rare circumstances.

possiblylinux127,

There was a bash script for a project that had a typo that caused it to rm -rf your home

thingsiplay,

Even the official Steam launcher script from Valve had an rm -rf command with a variable that resolved into empty. This deleted everything in the users home directory. Valve corrected the script afterwards. Here is a random blog post about this subject I just found: hackaday.com/…/how-a-steam-bug-once-deleted-all-o…

SeikoAlpinist,

There was a KDE theme recently that was deleting home folders

kalleboo,

There was an updater for iTunes or something for MacOS X that would wipe out your home directory if your hard disk had a space in its name. The default name for the Mac hard disk from the factory is “Macintosh HD”.

phx,

Or how bumblebee did an “rm -rf” on uninstall without a quoted path, which ended up nuking important directories

fireshell,
@fireshell@lemmy.ml avatar

“If you can’t win, lead.” Systemd development is in the hands of Microsoft employees. systemd has taken over almost all of Linux. Experts answer - in whose hands is Linux now? :)

0x0,

Most subtle instance of Microsoft’s Embrace-Extend-Extinguish to date.

png,

Except MS needs Linux for Azure and Systemd alternatives do exist

Zucca,

Initially the bug report was shot down by systemd developer Luca Boccassi of Microsoft with:

Emphasis mine.

While MS at least tries to be good guy nowdays, I just can’t trust their code too much.

0x0,

They never stopped being bad, they’ve just refined their tactics.

mlg,
@mlg@lemmy.world avatar

Microsoft

Ah so that’s where they pulled the run0 idea out of their asses from.

brb gonna go tell RedHat to make a fork lol.

ryannathans,

–purge is NOT documented in man for systemd-tmpfiles

thingsiplay,

I unfortunately updated already and they seem to have added documentation into man systemd-tmpfiles already. Here is the snippet that is relevant:


<span style="color:#323232;">--purge
</span><span style="color:#323232;">If this option is passed, all files and directories marked for creation by the tmpfiles.d/ files specified on the command
</span><span style="color:#323232;">line will be deleted. Specifically, this acts on all files and directories marked with f, F, d, D, v, q, Q, p, L, c, b, C,
</span><span style="color:#323232;">w, e. If this switch is used at least one tmpfiles.d/ file (or - for standard input) must be specified on the command line
</span><span style="color:#323232;">or the invocation will be refused, for safety reasons (as otherwise much of the installed system files might be removed).
</span><span style="color:#323232;">
</span><span style="color:#323232;">The primary usecase for this option is to automatically remove files and directories that originally have been created on
</span><span style="color:#323232;">behalf of an installed packaged at package removal time.
</span><span style="color:#323232;">
</span><span style="color:#323232;">It is recommended to first run this command in combination with --dry-run (see below) to verify which files and
</span><span style="color:#323232;">directories will be deleted.
</span><span style="color:#323232;">
</span><span style="color:#323232;">Warning!  This is is usually not the command you want! In most cases --remove is what you are looking for.
</span><span style="color:#323232;">
</span><span style="color:#323232;">Added in version 256.
</span>
Aatube,

Did you update to 256.1? On Poettering's recommendation, they made it require a config.

2xsaiko,
@2xsaiko@discuss.tchncs.de avatar

It was added in v256, maybe you don’t have that yet

ryannathans,

That could be it actually, I’ll have to check when I have access to my computer

phoenixz,

Though I hate systemd with a passion, this does seem to be a “doh” situation…

Systemd changes my entire system to the point that 5 minute tasks now take me an hour, I hate it with a passion…

But this ain’t it

Max_P,
@Max_P@lemmy.max-p.me avatar

The fuck are you doing that it takes an hour to do with systemd? My experience has been the total opposite: drop a file or two somewhere, probably a symlink and done. Even encrypted ZFS root in initramfs was surprisingly easy to set up.

Templa,

Imagine having the guts of using a command with “–purge” without reading documentation and blaming others because you’re just lazy.

Maybe just install a distro that don’t let you do that, OP. Have you considered getting a Mac?

frank,
@frank@troet.cafe avatar

@nick Hmm, wasn't systemd the emacs of init systems?

nick,

Haha yeah I guess kinda. It just does too much

ik5pvx,

Oh, come on, did you really have to pull emacs into this crossfire? Leave us weirdos alone!

danielfgom,
@danielfgom@lemmy.world avatar

So are we all ok with Microsoft now being in charge of systemd? The same company made famous by Blue Screens of Death?

When I consider this, it makes me think Linux has lost. Do you think Microsoft would let the Linux community be on charge of The Registry? Or any other part of the OS?

Mac may be the only decent option left…?

NekkoDroid,
@NekkoDroid@programming.dev avatar

The BSOD really isn’t something to be mad at, it actually in theory is good but there is only so much you can do when a kernel panics. What you should be mad at is shitty drivers causing BSODs

MonkderDritte,

Yeah, “Systemd won”, “it’s decided”, stuff like this on discourse. Sorry, but that’s not how Open Source works.

kenkenken,
@kenkenken@sh.itjust.works avatar

systemd now is focused around image-based systems. There is a huge gap between this design and traditional distros. I hate how the linux community has nothing in between of these two polar opposite approaches.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • fightinggames
  • All magazines