Commit b077d8a
committed
build: automate directory creation and default configuration install
This patch improves the 'make install' process by:
1. Creating the runstatedir (e.g., /usr/local/var/run) to ensure ksmbd.mountd
can create its lock files.
2. Creating the sysconfdir (e.g., /usr/local/etc/ksmbd) and installing a
default ksmbd.conf if one does not already exist.
This prevents startup failures caused by missing runtime paths or the
absence of a primary configuration file.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>1 parent dc21489 commit b077d8a
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments