Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Create loop device #36

Closed
wants to merge 3 commits into from
Closed

Create loop device #36

wants to merge 3 commits into from

Conversation

gael-api
Copy link

Hi,
With docker, loopback pseudo devices /dev/loop* are not created automatically.
This cause errors during iso mount and squashfs mount.

This MR will populate many loopback files if the playbook is run inside a docker container.

@fdcastel
Copy link

fdcastel commented Jan 13, 2024

Thanks @gael-api. This fixed the problem for me.

@sever-sever Please merge this one.

Related: #37

UPDATE: Do not merge. It doesn't work.

@fdcastel
Copy link

For reference. The error I was getting was this:

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Device /dev/loop8\n/dev/loop9\n/dev/loop10p2 not found."}

@sever-sever
Copy link
Member

sever-sever commented Jan 16, 2024

With those changes.
After the first build, I get:

TASK [setup-root-partition : Create a fileystem on EFI partition] ****************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Device p2 not found."}

second

TASK [setup-root-partition : Create a fileystem on EFI partition] ****************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Device p2 not found."}

Strangely, after several times it starts work without any change.

Without changes:


PLAY RECAP ***********************************************************************************************************************************************************************************************************
localhost                  : ok=79   changed=60   unreachable=0    failed=0    skipped=20   rescued=0    ignored=0   

root@74f71d32a7a2:/vm-build/vyos-vm-images# ls /tmp
mc-root  vyos-1.4.0-cloud-init-2G-qemu.qcow2

@fdcastel
Copy link

Strangely, after several times it starts work without any change.

Yes. Sorry @sever-sever. Only today I found this actually don't fix the problem.

I'm without the ability to build a new image for now. Trying to understand what causes the error.

Commit 93879fe changed this. Before it had a | head -n1 to filter the first result. Unfortunately, adding this filter still doesn't fix the problem.

@fdcastel
Copy link

@zdc If you could, kindly bring some light to this problem.

@fdcastel
Copy link

fdcastel commented Jan 16, 2024

Strangely, after several times it starts work without any change.

I ran it 20 times now 😄. It didn't work.

Every TWO runs the error message grows with a new /dev/loopX item:

I stopped at:

TASK [setup-root-partition : Create a fileystem on EFI partition] ***********************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Device /dev/loop17\n/dev/loop8\n/dev/loop15\n/dev/loop13\n/dev/loop11\n/dev/loop18\n/dev/loop9\n/dev/loop16\n/dev/loop14\n/dev/loop12\n/dev/loop10p2 not found."}`

@sever-sever
Copy link
Member

It does not fix the issue
Close it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
3 participants