sysext: fix `--root=` support
authorMathieu Tortuyaux <mtortuyaux@microsoft.com>
Tue, 29 Aug 2023 11:42:16 +0000 (13:42 +0200)
committerMathieu Tortuyaux <mtortuyaux@microsoft.com>
Tue, 29 Aug 2023 11:55:09 +0000 (13:55 +0200)
commit14361f6dd9ee37bd96170f3d21d65f8758e6b5aa
treeb716835393fbf71ebac59536439506d7aceb615b
parent599a3124849819ba5af0a71b7572e87256814881
sysext: fix `--root=` support

when provided `--root=` was failing for `status`:
```
$ systemd-sysext --root=/mnt status
Failed to open '/usr/.systemd-sysext/extensions': No such file or directory
```

path was not relative to the given `--root` - same goes for the `need_reload`
as it was inspired from the `verb_status` section.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
src/sysext/sysext.c