lxc: starting a container errors out
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
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
Quoted 14 lines · On Sat, Jun 13, 2026, 3:34 p.m. Ferry Toth via lists.yoctoproject.org…
root@yuna:~# lxc-create --name mycontainer --template download -- --dist ubuntu --release resolute --arch amd64mktemp: 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)"
Quoted 7 lines
in patch "templates-actually-create-DOWNLOAD_TEMP-directory.patch."
At this point in the code it is guaranteed that
DOWNLOAD_TEMPis unset. Andmktemp -p -dresults to the above error (on linux).The patch needs to be dropped.
So send a patch.
lxc is functional for other use cases master-next is passing sanity for incus/lxc and I'll need to confirm those paths against any changes.
Bruce
Quoted 15 lines
Ferry
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#9890):
https://lists.yoctoproject.org/g/meta-virtualization/message/9890
Mute This Topic: https://lists.yoctoproject.org/mt/119792692/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 29 lines · Bruce Ashfield via lists.yoctoproject.org
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek IIQuoted 19 lines · On Sat, Jun 13, 2026, 3:34 p.m. Ferry Toth via lists.yoctoproject.org…
root@yuna:~# lxc-create --name mycontainer --template download -- --dist ubuntu --release resolute --arch amd64mktemp: 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_TEMPis unset. Andmktemp -p -dresults to the above error (on linux).
Quoted 10 lines
Quoted 2 lines
The patch needs to be dropped.
So send a patch.
lxc is functional for other use cases master-next is passing sanity for incus/lxc and I'll need to confirm those paths against any changes.
I've created some better unit tests for lxc, rather than relying on incus.
I've also dropped the patch, as both types of testing are passing. master-next has the changes. They should be in master early next week.
Bruce
Quoted 21 lines
Bruce
Quoted 7 lines
Ferry
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#9891):
https://lists.yoctoproject.org/g/meta-virtualization/message/9891
Mute This Topic: https://lists.yoctoproject.org/mt/119792692/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II