Subject: Re: [bug#73494] [PATCH v3 2/3] services: cleanup: Make /var/run a symlink of /run.

From: Maxim Cournoyer <[email-masked]>
Date: Sun, 27 Apr 2025 00:03:56 +0900

Hi Hilton,

Hilton Chain <[email-masked]> writes:

> * gnu/services.scm (cleanup-gexp): Make /var/run a symlink of /run.
> * doc/guix.texi (File Systems): Document it.
> * gnu/system/file-systems.scm (file-system-mapping->bind-mount): Replace
> /var/run in source path with /run.
> * gnu/services/dbus.scm (dbus-activation): Adjust accordingly.

[...]

> --- a/gnu/system/file-systems.scm
> +++ b/gnu/system/file-systems.scm
> @@ -594,7 +594,12 @@ (define (file-system-mapping->bind-mount mapping)
>      (($ <file-system-mapping> source target writable?)
>       (file-system
>         (mount-point target)
> -       (device source)
> +       (device
> +        ;; /var/run is implemented as a symlink to /run.
> +        (if (and (string? source)
> +                 (string-prefix? "/var/run" source))
> +            (string-drop source 4)
> +            source))
>         (type "none")
>         (flags (if writable?
>                    '(bind-mount)

I'd really prefer avoiding having to resort to the above hack, even if
that means grafting dbus with a variant that is built to use /run
instead of /var/run.

The jami test still fails with the current v3 too, that still needs
investigation.

It's annoying that I keep running out of steam on this series; if you
can continue pushing it forward, I'll have a look!

-- 
Thanks,
Maxim