:: Re: [devuan-dev] [PATCH 1/1] sysvin…
Pàgina inicial
Delete this message
Reply to this message
Autor: Andrew Bower
Data:  
A: svante.signell, devuan developers internal list
Assumpte: Re: [devuan-dev] [PATCH 1/1] sysvinit: Remove hard-coded paths in scripts.
Hi Svante,

On Sat, Nov 29, 2025 at 07:02:54PM +0100, Svante Signell wrote:
> Index: sysvinit-3.15/debian/src/initscripts/usr/lib/udev/hwclock-set
> ===================================================================
> --- sysvinit-3.15.orig/debian/src/initscripts/usr/lib/udev/hwclock-set
> +++ sysvinit-3.15/debian/src/initscripts/usr/lib/udev/hwclock-set
> @@ -2,11 +2,13 @@
> # Reset the System Clock to UTC if the hardware clock from which it
> # was copied by the kernel was in localtime.
>
> +PATH=/usr/sbin:/usr/bin:/sbin/bin
> +


init(8) says:

      Init sets the following environment variables for all its children:


       PATH   /bin:/usr/bin:/sbin:/usr/sbin


So I have been operating on the basis that initscripts do not need (and
therefore should not have) the PATH set.

Andrew