Repository navigation
meson: install compat symlinks for systemctl - #8300
Conversation
|
lgtm. |
There was a problem hiding this comment.
Note. Currently, init is a symlink to /usr/lib/systemd/systemd on Fedora, not systemctl.
There was a problem hiding this comment.
Oh, oh, oh. Thanks for catching this. Of course.
v2: - init is a symlink to systemd, not systemctl!
9d1e1e9 to
dc3fb37
Compare
|
Updated. |
|
lgtm. BTW, I thought that |
|
No. /sbin/init must be a binary that can start the system, and systemctl has no code for that. With sysvinit, /sbin/init also provided an implementation of /sbin/telinit, so /sbin/telinit was a symlink to /sbin/init. But we split those two roles, into systemd-init group, and systemctl-telinit-runlevel-... group. |
`init` should be a symlink to `systemd` not `systemctl`. See comments in systemd#8300.
|
I see. Thank you for the explanation. Maybe an origin of my confusion is that |
|
this breaks the rawhide CI, but I figure that's kinda expected. Thanks for fixing this! |
|
It seems after this change the symlinks are now set up in /usr/sbin/ instead, and since that is a symlink to /usr/bin on Exherbo and Arch atleast, installation of the produced image/tarball fails (since it tries to write to /usr/sbin making it a directory while it should be a symlink). |
|
Oh, I didn't consider this case. Fedora is still suffering from the bin-sbin split. |
|
This is not a problem when installing into the real root, where /usr/sbin and /usr/bin already exist, right? It's only an issue when using DESTDIR? |
|
I think so, yes. |
|
I'll try testing it. |
|
@bl33pbl0p i merged #8319 now. BTW, if you merge bin+sbin like this (which I very much sympathize with), then i figure you might want to #ifdef out a few places in the systemd tree where we refer to the directory. I'd welcome a patch adding the necessary iffdeffery for dealing with that the same way as we already have For example, /sbin is currently mentioned in src/core/namespace.c where it should suppressed if the dir is merged like that. Similar in src/basic/path-util.h and possibly others. |
No description provided.