()
| 38 | ) |
| 39 | |
| 40 | func Systemd() ([]Subsystem, error) { |
| 41 | root, err := v1MountPoint() |
| 42 | if err != nil { |
| 43 | return nil, err |
| 44 | } |
| 45 | defaultSubsystems, err := defaults(root) |
| 46 | if err != nil { |
| 47 | return nil, err |
| 48 | } |
| 49 | s, err := NewSystemd(root) |
| 50 | if err != nil { |
| 51 | return nil, err |
| 52 | } |
| 53 | // make sure the systemd controller is added first |
| 54 | return append([]Subsystem{s}, defaultSubsystems...), nil |
| 55 | } |
| 56 | |
| 57 | func Slice(slice, name string) Path { |
| 58 | if slice == "" { |
nothing calls this directly
no test coverage detected
searching dependent graphs…