Bug 2184779
| Summary: | Filesystem: create systemd unit files for filesystems that are considered network filesystems by systemd | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Shane Bradley <sbradley> |
| Component: | resource-agents | Assignee: | Oyvind Albrigtsen <oalbrigt> |
| Status: | VERIFIED --- | QA Contact: | cluster-qe <cluster-qe> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.0 | CC: | agk, cluster-maint, fdinitto, mjuricek, nwahl, phagara |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 9.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | resource-agents-4.10.0-38.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Shane Bradley
2023-04-05 17:34:02 UTC
The systemd_drop_in() function can do this. See lvm_start() in LVM-activate.
This would be something like
```
# if this is a remote filesystem (https://github.com/systemd/systemd/blob/v253/src/basic/filesystems.c#L115-L132)
systemd_drop_in "99-Filesystem-remote" "After" \
"remote-fs.target"
```
We should think about whether Wants= or Requires= is also necessary. I think After= is sufficient.
|