Raspberry Pi 2/3: failed to umount /lib/modules and /lib/firmware

Bug #1647950 reported by gerald.yang
This bug report is a duplicate of:  Bug #1574487: possibly unclean shutdown. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
In Progress
Low
John Lenton

Bug Description

I found some error messages during shutdown on Raspberry Pi 2/3,
- failed to umount /lib/modules
- failed to umount /lib/firmware

So I check those folders
gerald-yang-tw@localhost:~$ mount | grep pi2-kernel
/writable/system-data/var/lib/snapd/snaps/pi2-kernel_22.snap on /lib/modules type squashfs (ro,relatime)
/writable/system-data/var/lib/snapd/snaps/pi2-kernel_22.snap on /lib/modules type squashfs (ro,relatime)
/writable/system-data/var/lib/snapd/snaps/pi2-kernel_22.snap on /lib/firmware type squashfs (ro,relatime)
/writable/system-data/var/lib/snapd/snaps/pi2-kernel_22.snap on /lib/firmware type squashfs (ro,relatime)
/var/lib/snapd/snaps/pi2-kernel_22.snap on /snap/pi2-kernel/22 type squashfs (ro,relatime)
/var/lib/snapd/snaps/pi2-kernel_22.snap on /writable/system-data/snap/pi2-kernel/22 type squashfs (ro,relatime)

Somehow the kernel snap is mounted twice on both /lib/modules and /lib/firmware
But the UC16 for AMD64 doesn't have this issue, I think it might be the root cause that during shutdown, system fails to umount these two folders.

Revision history for this message
John Lenton (chipaca) wrote :

Yep! We're aware. In fact I thought we had a bug for this, but it looks like it was only in trello. There's a fix that's stuck behind some packaging issues that are getting resolved.

It does also affect amd64 (but it might be too quick to notice), btw.

Changed in snappy:
importance: Undecided → Low
status: New → In Progress
assignee: nobody → John Lenton (chipaca)
Revision history for this message
John Lenton (chipaca) wrote :

Importance is Low because despite the scary warning things do get remounted readonly (so no data loss happens) and shutdown succeeds.

Revision history for this message
Michael Vogt (mvo) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.