Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Linux

New systemd Update Will Bring Windows' Infamous Blue Screen of Death To Linux (arstechnica.com) 154

An anonymous reader quotes a report from Ars Technica: Windows' infamous "Blue Screen of Death" is a bit of a punchline. People have made a hobby of spotting them out in the wild, and in some circles, they remain a byword for the supposed flakiness and instability of PCs. To this day, networked PCs in macOS are represented by beige CRT monitors displaying a BSOD. But the BSOD is supposed to be a diagnostic tool, an informational screen that technicians can use to begin homing in on the problem that caused the crash in the first place; that old Windows' BSOD error codes were often so broad and vague as to be useless doesn't make the idea a bad one. Today, version 255 of the Linux systemd project honors that original intent by adding a systemd-bsod component that generates a full-screen display of some error messages when a Linux system crashes.

The systemd-bsod component is currently listed as "experimental" and "subject to change." But the functionality is simple: any logged error message that reaches the LOG_EMERG level will be displayed full-screen to allow people to take a photo or write it down. Phoronix reports that, as with BSODs in modern Windows, the Linux version will also generate a QR code to make it easier to look up information on your phone.

This discussion has been archived. No new comments can be posted.

New systemd Update Will Bring Windows' Infamous Blue Screen of Death To Linux

Comments Filter:
  • For boot errors only (Score:4, Informative)

    by christoban ( 3028573 ) on Thursday December 07, 2023 @05:43PM (#64064981)

    FYI, as part of systemd, it's only for boot errors.

    Linux does still have the kernel panic for other errors.

  • Systemd is pretty much the opposite of the Linux philosophy, so it's not unexpected to get a Windows-style BSOD. Not saying it's a bad idea, and it should not affect me as I only have to do with systemd on headless servers, but still mildly amusing.

    • by Dadoo ( 899435 )

      Systemd is pretty much the opposite of the Linux philosophy

      Yes it is (and that really doesn't thrill me), but someone had to do something about SysVinit.

    • Except that the Windows BSOD hasn't been that for years, it's just a giant frowny-face and "Something went wrong but we're not going to tell you what it is" (no shit sherlock, I can tell something went wrong because all my work has just vanished). So systemd's version will still be a huge improvement over the dumbed-to-uselessness report the Windows version has become.
  • by ArchieBunker ( 132337 ) on Thursday December 07, 2023 @06:19PM (#64065057)

    For the QR codes to point to a domain that someone forgets to renew.

    • by gweihir ( 88907 )

      Yep. Otr that some malware pusher has renewed after it expired.

      "Cretin-level" design. No surprise to find utter crap like that in systemd.

    • by tlhIngan ( 30335 )

      For the QR codes to point to a domain that someone forgets to renew.

      Those are set by the distribution owner, actually. They're customizable so any errors the distribution can have the QR code point to a webpage to contain common issues and resolutions.

      The whole point is to answer the question "Your system has crashed, now what?"

      This can be useful for embedded devices as well if they crash they can show it on a screen which the user (who probably doesn't know or care it runs Linux) can then go visit for trou

      • "Those are set by the distribution owner, actually. They're customizable "

        Which absolutely *guarantees* that they will wind up pointing to an outdated URL.

  • by AncalagonTotof ( 1025748 ) on Thursday December 07, 2023 @06:19PM (#64065059)
    "Windows is a cancer that attaches itself in an intellectual property sense to everything it touches"
  • At least be creative with it...

  • by gweihir ( 88907 ) on Thursday December 07, 2023 @06:30PM (#64065085)

    This is just exceptionally bad technology. No surprise it takes its inspirations from Windows.

  • by drinkypoo ( 153816 ) <drink@hyperlogos.org> on Thursday December 07, 2023 @06:42PM (#64065115) Homepage Journal

    Devuan Linux is Debian without the systemd, and with the various tweaks you need for the system to function properly without it.

    I am running Devuan 5 with root on ZFS on my desktop, with X11 and KDE, and ifupdown. It works just exactly how I expect. The boot speed is absolutely fine. Errors actually make it into the logs reliably.

    You do not have to give up the systems that work for the systemd that doesn't.

    • ...It works just exactly how I expect.

      That is exactly why systemd was such a godsend. SysV worked exactly like I expected: clumsily and unreliably. It sucked soooo bad compared to systemd, which made a Linux desktop more usable for regular people.

      • Re:a reminder (Score:4, Interesting)

        by xwin ( 848234 ) on Thursday December 07, 2023 @09:04PM (#64065345)
        The systemd daemon has one huge problem IMHO - binary logs. I had a system with older version of systemd which stopped booting. The system has no console output of any kind. I took out drive to see why it stopped booting and the systemd would not read the binary logs because of incompatible format written by an older version. I had to use strings and other tricks to figure out what happened. Systemd sucks in my opinion. Sucks many times over because it breaks unix philosophy - do one thing and do it well. I have never had any issues with any of the other init systems that are out there. From various FreeBSD and NetBSD system to all linix systems. And I use Linux since mid 90s.
      • "Regular people" are not dealing with systemd or SysV, both would be hidden/abstracted away from them.

      • by GlennC ( 96879 )

        ...systemd, which made a Linux desktop more usable for regular people.

        And this is why I think it may be acceptable for desktop or single-user systems but it's not necessarily ideal for servers.

        If there's an issue with initialization on a server, I'd prefer to troubleshoot and put it in a state where I can see the order of operations. I don't trust that is possible with systemd.

        • And this is why I think it may be acceptable for desktop or single-user systems but it's not necessarily ideal for servers.

          It caused me problems on my single-user desktop system, which is why I went to Devuan. I had boot issues that were too hard to troubleshoot for the zero return I got from systemd.

    • by gweihir ( 88907 )

      Indeed. While I am still mostly on no-systemd Debian, if that ever becomes too clunky, Devuan is a definite alternative. I also have a non-systemd Gentoo running, but Gentoo requires a bit more set-up than other systems. It is done cleaner though, less auto-"magic" that can very easily turn into "auto-mess".

    • by Dadoo ( 899435 )

      Devuan Linux is Debian without the systemd

      What does it use for the init system? I would love a distribution that doesn't use systemd, but if it's SysVinit, I'm not interested. That's amateur hour.

      When I first started using Unix, back in the 80s, I spent months going through the manuals, trying to figure out how the startup process handled dependencies. I mean... a multitasking system like Unix must have a parallel startup process, right? Right? I was pretty disappointed when I found out how it really worked

      • What does it use for the init system? I would love a distribution that doesn't use systemd, but if it's SysVinit, I'm not interested. That's amateur hour.

        sysvinit by default, you can install runit or finit. Or cloud-init if you need that. I am happy with sysvinit. It's just me on my system, and it can't do two things that truly tax it at once anyway because (hilariously enough) I run out of VRAM. It costs quite a lot to get much more, though.

        When I first started using Unix, back in the 80s, I spent months going through the manuals, trying to figure out how the startup process handled dependencies. I mean... a multitasking system like Unix must have a parallel startup process, right? Right? I was pretty disappointed when I found out how it really worked.

        Say hello to my little friend [fsf.org]

  • by tadas ( 34825 ) on Thursday December 07, 2023 @07:33PM (#64065201)

    After they finish the BSOD screen, the systemd team's next project is to add Clippy to the boot sequence.

  • by HnT ( 306652 ) on Thursday December 07, 2023 @07:37PM (#64065215)

    What do you mean, when a Linux system crashes?

  • by magical liopleurodon ( 1213826 ) on Thursday December 07, 2023 @07:53PM (#64065243)

    I see Lennart Poettering has been busy since becoming employed by Microsoft

  • by ledow ( 319597 ) on Thursday December 07, 2023 @08:09PM (#64065269) Homepage

    Can we just purge all this shit once and for all?

    I want my fucking readable plain-text scripts back that did everything and DIDN'T fuck up my machine on a regular basis ever since they were introduced.

    Everything I want to change on systemd turns out to be impossible (renaming certain device nodes) or involves completely handing over the system to systemd in all aspects (booting), or having to entirely remove systemd's handling of something it has no need to be touching in the first place (e.g. DNS).

    • Re:SystemD (Score:4, Insightful)

      by wonkavader ( 605434 ) on Thursday December 07, 2023 @08:44PM (#64065313)

      Thank you. When the talk turns to systemd I get so clamped up with anger it's hard to express myself. Yes. I want my text files back, dammit. I want to choose my own tools. I want things simple. Every time I have a problem which turns out to be something else systemd hijacked, I get even angrier. And as a computer professional, it's not like you get to choose not to use RedHat at work, so it's impossible to avoid that pile of shit systemd.

      And it seems the Linux people who think systemd is fine are also MCSEs or whatever they're calling that now and think Windows and Linux are both just great.

      • FreeBSD is pretty nice in this respect (not nice in other respects). You can edit text files for configure the boot up. You can also use the "sysrc" utility to modify lines of those files in a safe way or from a script. Like if you have some deployment scripts or Ansible that sets up a bunch of machines. And man rc.conf(5) lays out the general structure of all these config options, and gives you a way to load specific drivers, set interface names, configure networking options, etc.

        P.S. I'm running FreeBSD +

      • So what is their reasoning behind binary logs?

        • by vadim_t ( 324782 )

          Binary logs are better.

          Journald can log a myriad fields, all clearly delimited. With binary logs there's no need to parse your logs with a regex, since every field is unambiguously extractable. There's no problem with messages containing multiple lines. You also can display time in whatever format you find convenient, and log binary data without any issues.

          You can choose output formats and fields and dump in JSON for instance.

          It's also a format with cursors which means it's trivial to resume parsing.

          Journal

          • by unrtst ( 777550 )

            Binary logs are better.

            ... goes on to list a bunch of shit no one ever wanted in a boot log.

            Dumping log data out to JSON with binary data in it? This isn't a log from Adobe Dreamweaver or the latest image generating AI; This is kernel boot information. WTF is JSON doing in this conversation?

            You also can display time in whatever format you find convenient

            WTF are you on about? Are you implying you couldn't reformat time strings before?
            $ date -d "2023-11-15 08:23:45" "+%A %B %d, %Y %H:%M"
            Wednesday November 15, 2023 08:23

            Cursors so you can resume processing??? File and line number. Done. My editor keeps track of all my last positions in files (vim). You need curso

            • by vadim_t ( 324782 )

              Dumping log data out to JSON with binary data in it? This isn't a log from Adobe Dreamweaver or the latest image generating AI; This is kernel boot information. WTF is JSON doing in this conversation?

              This is 2023. The log is for everything, both boot logs and applications, and servers. I don't see why my log system shouldn't be able to log say, HTTP Referer as its own field, and let me search by it.

              WTF are you on about? Are you implying you couldn't reformat time strings before?

              No, you shouldn't need to. "j

    • It's so strange that people who don't like systemd want to banish it back to Hell and people who do like systemd are like "it's fine if you want to use a sysv init, great that you have the choice!"

      Maybe there are rabid aystemd enthusiasts but I haven't seen them.

      Very odd situation.

      • by Shaitan ( 22585 )

        "Maybe there are rabid aystemd enthusiasts but I haven't seen them."

        Oh? Then why was systemd shoved down the throats of the user bases of every major distro? Someone had to be rapid enough to push forward despite opposition. On the bright side, now they've introduced BSODs to go with the windows-like crashes brought by the windows-like features.

        I blame the Solaris folks. Systemd reminds me of a crufty old binary Solaris system rather than the modern neat and trim everything is text linux systems which rende

        • >Then why was systemd shoved down the throats of the user bases of every major distro?

          Same reason Pulseaudio was shoved down our throats even though it was incomplete and quite buggy. For some reason, every distro maintainer creams over whatever Leenart releases even when it's an incomplete pile of crap.
      • by unrtst ( 777550 )

        It's so strange that people who don't like systemd want to banish it back to Hell

        I don't want to banish anything, but they made it the only way to opt out of systemd. Say what you will about all the other init systems, but they could replace one another, rather than superseding the others and causing lock in. Making Gnome depend on logind which depended on systemd... what the hell guys? That's not the way we (used to) work here.

  • by williamyf ( 227051 ) on Thursday December 07, 2023 @08:29PM (#64065299)

    In win3.x and win95, the BSOD colour could be user-defined via config file. Will systemd allow colour customization? Or will it be white characters on light blue background forevermore like in WinNT?

  • by OrangeTide ( 124937 ) on Thursday December 07, 2023 @09:18PM (#64065363) Homepage Journal

    Let's make a very complicated program with lots of moving parts and run it as our init process (pid = 1). Oh wait, when this program terminates the kernel panics, as is by design because a basic requirement in Unix and Linux is that the init program does not exit for any reason.

    journalctl is great. Except when you're trying to debug something important and need to look at a man page to work out how to view the end of the log instead of the beginning. a normal person would use familiar tools like less/more/most, cat, grep, etc to poke around in /var/log. That's not how things work anymore, you have to use some over-engineered software that is perhaps very enterprise friendly but not very workstation friendly. P.S. check out -f, -n, and -g for journalctl that will get you through 99% of the problems.

    There is a lot of scope creep with systemd. It expands to satisfy every new requirement that the major vendors push onto it. Most of these requirements are about getting Linux into the data center because the licensing is much more lucrative for everyone. The year of the Linux desktop has already past us by, and this OS is moving further away from us users and more towards the data center.

    That's not to say that you can't use Linux on a desktop. Many of us certainly do. But the ability is disappearing for one person to slap together something that solves their custom problem, to put a band-aid over something that needs a workaround, or add their own customizations that the distro vendor didn't pre-package.

    • by Shaitan ( 22585 )

      This is because developers wanted to get rid of those pesky admins who kept saying no to all the crazy insecure unstable pre-alpha garbage they wanted to run and deploy in their completely fresh off the press code they want to deploy to production.

      They not only don't want linux on the desktop. They want every linux instance to be a completely fresh linux instance that only serves as a thin wrapper for their application and is spun up by code.

  • Never had to deal with a blue screen of death back at the software company I worked for.
    I'd changed it to a sort of mauve color, so it was an MSOD, and an MS OD is so much a better acronym ;p
  • In my admittedly limited experience of having to diagnose errors that cause a kernel panic, the relevant bits usually end up in the kernel log a few screens up from the straw that broke the kernel's back.

  • First systemd introduced crashes to linux, now it introduces the BSOD to go with those crashes. Imagine what fancy new features systemd will bring over from the POS windows world next!

  • I keep see "when are we going to get rid of systemd and bring back _x_".

    First, I F-ING HATE systemd.

    Second, YOU can 'bring back" whatever you want at any time. Stop using it. There's non-systemd distros that you could use.

    Systemd is never going to die as long as everyone uses it. Griping about it and then still using it does no good.

If you teach your children to like computers and to know how to gamble then they'll always be interested in something and won't come to no real harm.

Working...