John Goerzen: First impressions of systemd, and they re not good
Well, I finally bit the bullet. My laptop, which runs jessie, got dist-upgraded for the first time in a few months. My brightness keys stopped working, and it no longer would suspend to RAM when the lid was closed, and upon chasing things down from XFCE to policykit, eventually it appears that suddenly major parts of the desktop breaks without systemd in jessie. Sigh.
So apt-get install systemd-sysv (and watch sysvinit-core get uninstalled) and reboot.
Only, my system doesn t come back up. In fact, over several hours of trying to make it boot with systemd, it failed in numerous spectacular and hilarious (or, would be hilarious if my laptop would boot) ways. I had text obliterating the cryptsetup password prompt almost every time. Sometimes there were two processes trying to read a cryptsetup password at once. Sometimes a process was trying to read that while another one was trying to read an emergency shell password. Many times it tried to write to /var and /tmp before they were mounted, meaning they *wouldn t* mount because there was stuff there.
I noticed it not doing much with ZFS, complaining of a dependency loop between zfs-mount and $local-fs. I fixed that, but it still wouldn t boot. In fact, it simply hung after writing something about wall passwords.
I ve dug into systemd, finding a unit generator for fstab (whatever the hack that is, it s not at all made clear by systemd-fstab-generator(8)).
In some cases, there s info in journalctl, but if I can t even get to an emergency mode prompt, the practice of hiding all stdout and stderr output is not all that pleasant.
I remember thinking what s all the flaming about? systemd wasn t my first choice (I always thought if it ain t broke, don t fix it about sysvinit), but basically ignored the thousands of messages, thinking whatever happens, jessie will still boot.
Now I m not so sure. Even if the thing boots out of the box, it seems like the boot process with systemd is colossally fragile.
For now, at least zfs rollback can undo upgrades to 800 packages in about 2 seconds. But I can t stay at some early jessie checkpoint forever.
Have we made a vast mistake that can t be undone? (If things like even *brightness keys* now require systemd )
Well, not long after
After spending a while fighting with upstart, at work, I decided that systemd couldn't be any worse and yesterday morning upgraded one of my servers to run it.
I have two classes of servers:
I spent many, many hours trying to understand why I couldn t have both nova console-log showing me the output of the log, AND have the OpenStack dashboard (eg: horizon) console to work at the same time. Normally, this is done very easily, by passing multiple times the console= parameter to the Linux kernel as follow:
One which ends in tears, I m afraid.
A week or so ago, I got an MacBook Air 13 (MacBook Air 6-2), to take with me when I head out to local hack sessions, and when I travel out of state for short lengths of time. My current Thinkpad T520i is an amazing machine, and will remain my daily driver for a while to come.
After getting it, I unboxed the machine, and put in a Debian install USB key. I wiped OSX (without even booting into it) and put Debian on the drive.
To my dismay, it didn t boot up after install. Using the recovery mode of the disk, I chrooted in and attempted an upgrade (to ensure I had an up-to-date GRUB). I couldn t dist-upgrade, the terminal went white. After C-c ing the terminal, I saw something about systemd s sysvinit shim, so I manually did a purge of sysvinit and install of systemd.
I hear this has been resolved now. Thanks :)
My machine still wasn t booting, so I checked around. Turns out I needed to copy over the GRUB EFI blob to a different location to allow it to boot. After doing that, I could boot Debian whilst holding Alt.
After booting, things went great! Until I shut my lid. After that point, my screen was either 0% bright (absolutely dark) or 100% (facemeltingly bright).
I saw
When you type
So, it seems that for a lot of people using unstable,
hardware-related permissions (shutdown/reboot, suspend/hibernate,
devices mount/umount etc.) have been broken since some times.
That's usually the case for people using GNOME with lightdm
display manager, Xfce with either gdm or lightdm.
It seems that recently, policykit (which is used by GNOME and
Xfce) switched from consolekit backend to logind backend
(yeah, systemd-logind). So applications using policykit
needs to handle that correctly, and that means beeing sure a logind
session is correctly setup, which is done by installing the package
libpam-systemd.
For now, it's still possible to not switch to systemd as init
system, by installing the systemd-shim package before
libpam-systemd. Be aware that (at least with the current state of
affairs), this is only true with logind before 204. When systemd
maintainers start transitionning to a later version, only
systemd-sysv (so, systemd as init system) will work.
For people reluctant to switch to systemd, they can use
systemd-shim for now. Then when systemd 205+ enters the archive,
either lose those hardware permissions, or try to improve
systemd-shim to handle that situation.
There's not much we (Xfce/LightDM maintainers) can do about
that.
so, systemd now and teh world still turns...
So, two days ago I rebooted my wheezy system into systemd and what shall I say, it was+is like the last Debian stable updates: boring. It just works. Kudos for all those who made this happen!
I've one lazyweb question: what reasons are there for me to try out systemd from wheezy-backports?
Plus another observation from maintaining piuparts.d.o: currently
Hot on the heels of my previous
Wow. 3G delta. I haven t booted this laptop for a while I think I m finally ready to make the move from gnome2 to gnome3. There are bits that still annoy me, but I think it s off to a good start. Upgrading perl from 5.10 to 5.14.
It has been all over the place. The Debian CTTE has chosen systemd over
upstart as default init system by chairman call. This decision was
overdue, as it was pretty clear that the tie will not change, and thus it will
be up to chairman. There were no new positions presented, and nobody was being
convinced of a different preference. The whole discussion had been escalating,
and had started to harm Debian.
Some people may not want to hear this, but another 10 ballots and options
would not have changed this outcome. Repating essentially the same decision
(systemd, upstart, or "other things nobody prefers") will do no good, but turn
out the same result, a tie. Every vote counting I saw happen would turn out this
tie. Half of the CTTE members prefer systemd, the other half upstart.
The main problems, however, are these:
The decision on which init system to use has plagued Debian for a
fairly long time now. We've had people talking about it as early as
debconf11 in Banja Luka, and we still haven't got a
decision. Instead, the decision has been going round in circles, in a
typical bikeshed fashion.
Originally, my opinion on the subject was "sysv-rc is good enough for
everyone, and it's portable, which other alternatives aren't".
By now, however, I've become convinced that the first part of that
statement isn't true, and that as a result a switch of a default init
system is indeed appropriate; that we should indeed switch to "something
else", at least for our Linux ports.
Once I came to that conclusion, my opinion on what, exactly, we
should use turned out to be nonexistent. That is, I don't care. Anything
will be fine.
What is bothering me, though, is that things keep dragging on and on
and on and on and on and on and on, ad infinitum.
We should just pick one and be done with it, dammit. The
fact that sysv-rc is replaced by "something else" does not mean people
must stop using sysv init scripts. Even if the maintainer of
some random package "foo" refuses to accept patches to support sysv-rc
for his package, there's nothing stopping anyone from providing a
package "sysv-support" containing init scripts (and nothing else) for
sysv-rc.
The same goes for a hypothetical upstart-support or systemd-support
package, of course: if you want to continue living in the stone age and
keep using sysv-rc forever, then there is nothing stopping
you. Even if we decide to use something else for our Linux
ports.
Ideally the non-Linux ports would move to something more modern too;
but there really really really isn't any reason why it would be
a problem if they didn't.
Can we stop painting the bikeshed now? If we don't, soon we'll have
to call it "hunk of paint with some bikes inside" rather than
"bikeshed".
Thanks.
