<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p>Hi,</p><p>I am attempting to build the latest version of <strong>systemd</strong> using <strong>mkosi</strong> <b>build </b>to create a bootable image, but I am encountering an error during the process.<br><br>Am I doing anything wrong here?</p><h4>Build system: <span style="font-weight:normal">Fedora 39<br><br></span>Commands used:<br><span style="font-weight:normal">git clone <a href="https://github.com/systemd/mkosi.git">https://github.com/systemd/mkosi.git</a><br>ln -s $PWD/mkosi/bin/mkosi /usr/local/bin/mkosi<br>git clone <a href="https://github.com/systemd/systemd.git">https://github.com/systemd/systemd.git</a><br>cd systemd<br>meson setup -Dinstall-tests=true<br>ninja -C build<br>mkosi genkey<br>mkosi -f<br><br></span>Error output:<br></h4><h4><span style="font-weight:400">Generating UKI profile 'profile1'</span></h4><h4><span style="font-weight:400">+ /usr/bin/python3 /usr/bin/ukify build --profile @/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/uki-profiles/profile1.profile --efi-arch x64 --stub /work/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/root/usr/lib/systemd/boot/efi/addonx64.efi.stub --output /work/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/uki-profiles/profile1.efi --cmdline @/work/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/cmdline</span></h4><h4><span style="font-weight:400">ukify: error: unrecognized arguments: --profile @/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/uki-profiles/profile1.profile</span></h4><h4>mkosi debug output<br><span style="font-weight:400">Command '[PosixPath('/usr/bin/python3'), PosixPath('/usr/bin/ukify'), 'build', '--profile', '@/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/uki-profiles/profile1.profile', '--efi-arch', 'x64', '--stub', '/work/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/root/usr/lib/systemd/boot/efi/addonx64.efi.stub', '--output', '/work/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/uki-profiles/profile1.efi', '--cmdline', '@/work/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/cmdline']' returned non-zero exit status 2.</span></h4><div><div>Traceback (most recent call last):</div><div>  File "/home/vishwa/mkosi/mkosi/run.py", line 62, in uncaught_exception_handler</div><div>    yield</div><div>  File "/home/vishwa/mkosi/mkosi/run.py", line 103, in fork_and_wait</div><div>    target(*args, **kwargs)</div><div>  File "/home/vishwa/mkosi/mkosi/__init__.py", line 4528, in run_build</div><div>    build_image(</div><div>  File "/home/vishwa/mkosi/mkosi/__init__.py", line 3700, in build_image</div><div>    install_kernel(context, partitions)</div><div>  File "/home/vishwa/mkosi/mkosi/__init__.py", line 2108, in install_kernel</div><div>    profiles = build_uki_profiles(context, cmdline)</div><div>  File "/home/vishwa/mkosi/mkosi/__init__.py", line 2061, in build_uki_profiles</div><div>    run_ukify(</div><div>  File "/home/vishwa/mkosi/mkosi/__init__.py", line 1570, in run_ukify</div><div>    run(</div><div>  File "/home/vishwa/mkosi/mkosi/run.py", line 150, in run</div><div>    with spawn(</div><div>  File "/usr/lib64/python3.12/contextlib.py", line 144, in __exit__</div><div>    next(self.gen)</div><div>  File "/home/vishwa/mkosi/mkosi/run.py", line 295, in spawn</div><div>    raise subprocess.CalledProcessError(returncode, cmdline)</div><div>subprocess.CalledProcessError: Command '[PosixPath('/usr/bin/python3'), PosixPath('/usr/bin/ukify'), 'build', '--profile', '@/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/uki-profiles/profile1.profile', '--efi-arch', 'x64', '--stub', '/work/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/root/usr/lib/systemd/boot/efi/addonx64.efi.stub', '--output', '/work/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/uki-profiles/profile1.efi', '--cmdline', '@/work/home/vishwa/.cache/mkosi/mkosi-workspace-bjy71c_r/cmdline']' returned non-zero exit status 2.</div></div><div><br></div><h4><span style="font-weight:normal">Regards<br>Vishwa</span></h4></div></div></div></div></div></div></div></div></div></div>