From: Daan De Meyer Date: Thu, 21 Jul 2022 10:51:08 +0000 (+0200) Subject: Actually apply --source-file-transfer=mount when booting with nspawn X-Git-Tag: v14~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2681d2adbaabe1065f7cff307368d0ff0d69bb5;p=thirdparty%2Fmkosi.git Actually apply --source-file-transfer=mount when booting with nspawn --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index e28e56f2c..4adaaf464 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -7862,6 +7862,9 @@ def run_shell_cmdline(args: MkosiArgs, pipe: bool = False, commands: Optional[Se if args.nspawn_keep_unit: cmdline += ["--keep-unit"] + if args.source_file_transfer_final == SourceFileTransfer.mount: + cmdline += [f"--bind={args.build_sources}:/root/src", "--chdir=/root/src"] + if commands or args.cmdline: # If the verb is 'shell', args.cmdline contains the command to run. # Otherwise, the verb is 'boot', and we assume args.cmdline contains nspawn arguments.