]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: Add RootDirectory= path to error message if directory does not exist 34902/head
authorRyan Wilson <ryantimwilson@meta.com>
Sat, 26 Oct 2024 22:33:30 +0000 (15:33 -0700)
committerRyan Wilson <ryantimwilson@meta.com>
Sat, 26 Oct 2024 22:33:30 +0000 (15:33 -0700)
commit141dfbe537c3f5692d49df17629e5cf98ec8ec8b
tree03e142b827b68c5e65eacd4c60bc5c7d90a767f8
parente73c042be6ebb8ca08a32595049938b03ea10de4
core: Add RootDirectory= path to error message if directory does not exist

A colleague reported when RootDirectory= does not exist, systemd reports an error like:
```
Failed to set up mount namespacing: No such file or directory
```

Unfortunately, with large spec files, it can be hard to diagnose which path systemd is talking
about. Thus, to make the error message more helpful and similar to mount error messages, we add
the root directory/image path into the error message like:
```
Failed to set up mount namespacing: /tmp/thisdoesnotexist: No such file or directory
```
src/core/exec-invoke.c