[systemd-devel] [PATCH] core: fix getting information about mount unit
Harald Hoyer
harald at redhat.com
Tue Mar 12 09:22:44 PDT 2013
Am 08.03.2013 15:13, schrieb Michal Sekletar:
> We should not try to get information about mount unit from fragment
> if the unit was created because of /proc/self/mountinfo event.
> ---
> src/core/mount.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/core/mount.c b/src/core/mount.c
> index 419cf27..d3333f9 100644
> --- a/src/core/mount.c
> +++ b/src/core/mount.c
> @@ -447,7 +447,11 @@ static int mount_add_default_dependencies(Mount *m) {
> if (UNIT(m)->manager->running_as != SYSTEMD_SYSTEM)
> return 0;
>
> - p = get_mount_parameters_fragment(m);
> + if (m->from_fragment)
> + p = get_mount_parameters_fragment(m);
> + else
> + p = get_mount_parameters(m);
> +
> if (!p)
> return 0;
>
>
pushed with simplification
More information about the systemd-devel
mailing list