Bug#1133276: mkosi: Building Debian Images fails (kmod not found)

Manuel Traut manut at mecka.net
Tue Apr 14 10:26:38 BST 2026


Modifying the $PATH on the local system works around this issue:

$ export PATH=$PATH:/sbin:/usr/lib/systemd
$ mkosi --distribution debian \
        --release sid \
        --package kmod,linux-image-amd64 \
        --output disk --debug 2> log2.txt
$ tail -2 log2.txt
‣  /home/manut/test/disk.raw size is 473.7M, consumes 472.7M.
‣ + rm -rf -- /work/home/manut/.cache/mkosi/mkosi-workspace-rvoxbpd0 /work/home/manut/.cache/mkosi/mkosi-workspace-rvoxbpd0/root

It is also required to add sbin to the path on the host, if a ToolsTree is
used.



More information about the Pkg-systemd-maintainers mailing list