Skip to content

Commit

Permalink
chdir into /proc for determining default Config
Browse files Browse the repository at this point in the history
There are users that run mkosi from / so let's use /proc instead.

Fixes #2786
  • Loading branch information
DaanDeMeyer committed Jun 15, 2024
1 parent 57d7deb commit 634f1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkosi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@ def default(cls) -> "Config":
This prevents MkosiArgs being generated with defaults values implicitly.
"""
with chdir("/"):
with chdir("/proc"):
_, [config] = parse_config([])

return config
Expand Down

0 comments on commit 634f1aa

Please sign in to comment.