Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error after loop module is loaded #562

Closed
obbardc opened this issue Mar 16, 2020 · 4 comments · Fixed by #625
Closed

error after loop module is loaded #562

obbardc opened this issue Mar 16, 2020 · 4 comments · Fixed by #625
Labels
external bug An issue in another tool affects RAUC

Comments

@obbardc
Copy link
Contributor

obbardc commented Mar 16, 2020

hi,
I have an error like this on the first system boot, mount fails with code 32 (and no further error). The second time the command is run it works OK.

I think it's due to loading loop module then attempting to setup the loop device so quickly.

Mar 16 07:24:23 localhost rauc[661]: Verifying bundle... 
Mar 16 07:24:23 localhost rauc[661]: Mounting bundle '/tmp/_download.raucb' to '/run/rauc/bundle'
Mar 16 07:24:23 localhost kernel: loop: module loaded
Mar 16 07:24:23 localhost rauc[661]: mount: /run/rauc/bundle: failed to setup loop device for /tmp/_download.raucb.
Mar 16 07:24:23 localhost rauc[661]: Failed mounting bundle: failed to run mount: Child process exited with code 32
Mar 16 07:24:23 localhost rauc[661]: installing https://fs.local/staging.raucb: Failed mounting bundle: failed to run mount: Child process exited with code 32
Mar 16 07:24:23 localhost rauc[661]: installing https://fs.local/staging.raucb: finished
Mar 16 07:24:23 localhost rauc[661]: installing `https://fs.local/staging.raucb` failed: 1
Mar 16 07:24:23 localhost system-bridge-d[743]: Failed mounting bundle: failed to run mount: Child process exited with code 32 (1)
Mar 16 07:24:23 localhost kernel: loop_set_status: loop0 () has still dirty pages (nrpages=1)
@obbardc
Copy link
Contributor Author

obbardc commented May 15, 2020

@obbardc obbardc mentioned this issue May 15, 2020
@ejoerns
Copy link
Member

ejoerns commented Jun 16, 2020

@obbardc That is something I haven't seen myself yet, but I have never used loop support as a module yet.
In my opinion, on an embedded system targeted to use RAUC, the SquashFS support should normally be built-in.

The patch you mention is now part of released Linux v5.7, thus we could add a note in the integration documentation that loop should not be used as a module before 5.7.

@obbardc Is there any special reason to use SquashFS as a module instead of having it built-in that we should have in mind?

@obbardc
Copy link
Contributor Author

obbardc commented Jun 16, 2020 via email

@ejoerns
Copy link
Member

ejoerns commented Jun 18, 2020

@obbardc Ok, for the Debian kernel I understand the issue. A MR for documentation sounds great.

Thanks!

@ejoerns ejoerns added the external bug An issue in another tool affects RAUC label Jun 18, 2020
obbardc added a commit to obbardc/rauc that referenced this issue Aug 17, 2020
There is a bug in Kernel version v5.0 until v5.7 when loop device
support is loaded as a module, in a small percentage of cases
mounting the bundle fails. Include information about the patch.

Resolves: rauc#562
Resolves: rauc#582

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external bug An issue in another tool affects RAUC
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants