]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysupdate: Allow patterns to match path with directories
authorValentin David <me@valentindavid.com>
Sun, 24 Sep 2023 12:35:59 +0000 (14:35 +0200)
committerValentin David <me@valentindavid.com>
Thu, 28 Sep 2023 09:41:29 +0000 (11:41 +0200)
commit8b051623cd4f258751d845bb1e827dab8e57b1df
tree5c96c28c4ed3437eeef707069d1b792aeedcccef
parent18c3ffbfcc2d4d6d1a4680092123e510945f7a78
sysupdate: Allow patterns to match path with directories

`MatchPattern` for regular-file and directory as target can now match
subdirectories This is useful to install files for examples in `.extra.d`
directories:

```
[Target]
Type=regular-file
Path=/EFI/Linux
PathRelativeTo=boot
MatchPattern=gnomeos_@v.efi.extra.d/apparmor.addon.efi
```

The if the directories in the path do not exist, they will be created.  Whereas
the part in `Path` is not created.
src/sysupdate/sysupdate-pattern.c
src/sysupdate/sysupdate-pattern.h
src/sysupdate/sysupdate-resource.c
src/sysupdate/sysupdate-transfer.c
test/units/testsuite-72.sh