Re: PATH revisited: one PATH to "rule the [Debian] World"
tomas@tuxteam.de composed on 2023-10-28 06:36 (UTC+0200):
> On Fri, Oct 27, 2023 at 02:52:37PM -0400, Greg Wooledge wrote:
>> On Fri, Oct 27, 2023 at 02:46:55PM -0400, Stefan Monnier wrote:
>>> I don't think there's a need to defend the status quo: the above page
>>> may not be fully incorrect, but it is misleading (especially since the
>>> `init` is given a monospace font, to suggest it's an actual program name
>>> rather than just the name used to refer to the concept of the initial
>>> process).
>> unicorn:~$ ps -fp 1
>> UID PID PPID C STIME TTY TIME CMD
>> root 1 0 0 Oct07 ? 00:01:58 /sbin/init
>> unicorn:~$ ls -l /sbin/init
>> lrwxrwxrwx 1 root root 20 Sep 20 08:15 /sbin/init -> /lib/systemd/systemd*
# dpkg-query -S /lib/systemd/systemd
systemd: /lib/systemd/systemd
#
>> /sbin/init is what gets executed by the kernel, regardless of what init
>> system is installed.
This seems backwards. The kernel may call /sbin/init, but what gets executed is
surely /lib/systemd/systemd from package named systemd.
# grep RETT /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
# apt purge systemd-sysv
...
Suggested packages:
bootlogd
Recommended packages:
orphan-sysvinit-scripts
The following packages will be REMOVED:
alsa-tools-gui* arandr* dbus-user-session* dconf-gsettings-backend*
dconf-service* gir1.2-gtk-3.0* gtk3-tqt-engine-trinity* libgtk-3-0* libgtk-3-bin*
libgtk-3-common* libpam-systemd*
pkexec* polkitd* systemd-sysv*
The following NEW packages will be installed:
sysvinit-core
...
Do you want to continue? [Y/n] n
Abort.
#
> Unless you boot (heh) with an "init=" parameter. AFAIK, this link is
> provided by the systemd-sysv [0] compatibility package, which, as it
> seems, you don't /have/ to install.
> This is what the systemd [1] package page says:
> "Installing the systemd package will not switch your init
> system unless you boot with init=/lib/systemd/systemd or
> install systemd-sysv in addition."
This would appear to be an anachronism since systemd became the default Debian
init system.
> so strictly speaking, Stefan is still right.
No posts from Greg have arrived here in at least two days, or I would have replied
to his directly.
--
Evolution as taught in public schools is, like religion,
based on faith, not based on science.
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata
Reply to: