lxc: starting a container errors out
Ferry Toth <[email protected]> Sat, 13 Jun 2026 21:34:41 +0200
| Newsgroups | org.yoctoproject.lists.meta-virtualization |
|---|---|
| Message-ID | <[email protected]> |
root@yuna:~# lxc-create --name mycontainer --template download -- --dist
ubuntu --release resolute --arch amd64
mktemp: failed to create file via template '-d/tmp.XXXXXXXXXX': No such
file or directory
This can be traced back to
- DOWNLOAD_TEMP="${DOWNLOAD_TEMP}$(mktemp -d)"
+ DOWNLOAD_TEMP="$(mktemp -p ${DOWNLOAD_TEMP} -d)"
in patch "templates-actually-create-DOWNLOAD_TEMP-directory.patch."
At this point in the code it is guaranteed that DOWNLOAD_TEMP is unset.
And `mktemp -p -d` results to the above error (on linux).
The patch needs to be dropped.
Ferry