[systemd-devel] [PATCH 05/10] rules: skip 99-systemd.rules when not running systemd as init

Lennart Poettering lennart at poettering.net
Wed Jul 16 07:49:55 PDT 2014


On Wed, 16.07.14 12:09, Jon Severinsson (jon at severinsson.net) wrote:

> From: Tollef Fog Heen <tfheen at err.no>

If you really want to support systems without systemd installed, then I'd
recommend placing this rules file in the systemd pacakge, so that it is
gone if you uninstall systemd.

That said, nothing of what the file does is in any way something that
could break things on non-systemd systems, hence the whole excercise
sounds pointless...

> 
> ---
>  rules/99-systemd.rules.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/rules/99-systemd.rules.in b/rules/99-systemd.rules.in
> index c3ef81b..df83a38 100644
> --- a/rules/99-systemd.rules.in
> +++ b/rules/99-systemd.rules.in
> @@ -6,6 +6,7 @@
>  #  (at your option) any later version.
>  
>  ACTION=="remove", GOTO="systemd_end"
> +TEST!="/run/systemd/system", GOTO="systemd_end"
>  
>  SUBSYSTEM=="tty", KERNEL=="tty[a-zA-Z]*|hvc*|xvc*|hvsi*|ttysclp*|sclp_line*|3270/tty[0-9]*", TAG+="systemd"
>  


Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list