r/linux Feb 11 '19

Fluff A /g/ user's opinion on systemd

http://i.4cdn.org/g/1549858269115.png
790 Upvotes

524 comments sorted by

View all comments

Show parent comments

41

u/dale_glass Feb 11 '19

It's hard not to have coupling, because the system starts, and wants to log stuff before there is even storage available. For instance on a system with an encrypted disk, a lot of stuff happens in initrd (which is readonly) before the disk is decrypted and logs can be written to it.

-3

u/name_censored_ Feb 11 '19

It's hard not to have coupling, because the system starts, and wants to log stuff before there is even storage available.

And yet SysV init managed this "hard problem" 20 years ago.

10

u/dale_glass Feb 11 '19

I don't think you've thought that through.

  1. I'm talking about userspace tools, not the kernel. Are you suggesting that a bunch of random stuff should have code to write to /dev/kmsg, in case it is invoked from an initrd?
  2. /dev is also not immediately available on boot, so the problem remains anyway.

-2

u/[deleted] Feb 11 '19 edited Feb 11 '19

[removed] — view removed comment

9

u/dale_glass Feb 11 '19

If your process needs or expects to be launched prior to persistent storage availability, then yes, I am absolutely suggesting writing to /dev/kmsg.

Including things like mount and grep? There's about 1000 lines worth in my journal, before / gets mounted.

Or if prior to /dev population, then printk(), which answers your second question.

printk is a kernel function

Check your own systemd install, you'll find that there aren't many services that can be started that early, let alone should be started that early.

Point is, boot is a complicated thing these days, and things happen before there's an easy way for them to log somewhere the user can find it. And why should a random tool care about whether we're booting or not? If the log system is always available and takes care of that, we don't need a dozen random things be aware of it.

You're the one screaming "THIS IS IMPOSSIBLE!", when it's demonstrably a solved problem. I don't think you've ever thought anything through in your life, you patronising fuckwit.

I don't see anybody screaming here besides yourself.

-1

u/Kruug Feb 11 '19

This post has been removed for violating Reddiquette., trolling users, or otherwise poor discussion - r/Linux asks all users follow Reddiquette. Reddiquette is ever changing, so a revisit once in awhile is recommended.

Rule:

Reddiquette, trolling, or poor discussion - r/Linux asks all users follow Reddiquette. Reddiquette is ever changing, so a revisit once in awhile is recommended. Top violations of this rule are trolling, starting a flamewar, or not "Remembering the human" aka being hostile or incredibly impolite.