Re: [meta-virtualization] lxc: starting a container errors out

Bruce Ashfield <[email protected]> Sat, 13 Jun 2026 23:55:57 -0400
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <CADkTA4N=2x5+PdfYdK5a3yS0-jd0c_k1FAV_0Z26FCx4wha2_A@mail.gmail.com>
On Sat, Jun 13, 2026 at 6:52 PM Bruce Ashfield via lists.yoctoproject.org
<[email protected]> wrote:

>
>
> - Thou shalt not follow the NULL pointer, for chaos and madness await thee
> at its end
> - "Use the force Harry" - Gandalf, Star Trek II
>
>
> On Sat, Jun 13, 2026, 3:34 p.m. Ferry Toth via lists.yoctoproject.org
> <[email protected]> wrote:
>
>> 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.
>>
>
>
> 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



> Bruce
>
>
>> 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]]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II