From 788c0af4b94f19855b939107e4f2fd471d3a6b7b Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 6 Nov 2018 00:25:36 -0800 Subject: [PATCH] Fix wrong type to link_output $ sudo mkosi --default /dev/null -d fedora -r 29 -t directory -p dnf ... Traceback (most recent call last): File "/bin/mkosi", line 3959, in main() File "/bin/mkosi", line 3949, in main build_stuff(args) File "/bin/mkosi", line 3809, in build_stuff link_output(args, workspace, raw or tar) File "/bin/mkosi", line 2478, in link_output os.rename(os.path.join(workspace, "root"), args.output) File "/usr/lib64/python3.7/posixpath.py", line 80, in join a = os.fspath(a) TypeError: expected str, bytes or os.PathLike object, not TemporaryDirectory --- mkosi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkosi b/mkosi index a78b71ff4..0800bd329 100755 --- a/mkosi +++ b/mkosi @@ -3718,7 +3718,7 @@ def build_stuff(args: CommandLineArguments) -> None: signature = calculate_signature(args, checksum) bmap = calculate_bmap(args, raw) - link_output(args, workspace, raw or tar) + link_output(args, workspace.name, raw or tar) link_output_root_hash_file(args, root_hash_file.name if root_hash_file is not None else None) -- 2.47.2