Skip to content

Commit 56d5ed4

Browse files
pothosdaandemeyer
authored andcommitted
Handle absence of /home gracefully
When running mkosi nested in a systemd unit where /home exists but is empty as a special build user is used, then the inner mkosi fails to bind mount /home for some reason. Since this won't be interesting to bind mount anyway, skip the bind mount.
1 parent 49d5417 commit 56d5ed4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mkosi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ def run_sync_scripts(config: Config) -> None:
740740
"--ro-bind", json, "/work/config.json",
741741
# We need to make sure SSH keys and such can be accessed when git is used so bind in /home to
742742
# make sure that works.
743-
"--ro-bind", "/home", "/home",
743+
"--ro-bind-try", "/home", "/home",
744744
# e.g. the ssh-agent socket and such will be in /run and might be used by git so make sure
745745
# those are available as well.
746746
"--ro-bind", "/run", "/run",

0 commit comments

Comments
 (0)