snapd failed to setup FDE when there are multiple volumes

Bug #1936479 reported by Robert Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
High
Samuele Pedroni

Bug Description

When there are multiple volumes defined in gadget.yaml of gadget snap, snapd failed to setup FDE. It showed:

    [ 52.365554] systemd[1]: snap.platform-kernel.hook.fde-setup.8a0760e2-9f52-40c1-9aee-da2ccc30c729.scope: Succeeded.
    [ 52.375118] snapd[2003]: taskrunner.go:271: [change 2 "Setup system for run mode" task] failed: cannot use gadget: gadget does not support encrypted data: volume "lun-1" has no structure with system-save role

After removing volumes except lun-0 from gadget.yaml, snapd can set up FDE correctly.

I tried snapd 2.51.1 (stable channel) and 2.51.3+git971.g2464f4b (edge channel). Both versions have the same problem.

Revision history for this message
Ian Johnson (anonymouse67) wrote :

Can you share the gadget.yaml you are using?

Changed in snapd:
status: New → Incomplete
Changed in snapd:
importance: Undecided → High
assignee: nobody → Samuele Pedroni (pedronis)
Revision history for this message
Samuele Pedroni (pedronis) wrote :

we got a copy of the gadget

Changed in snapd:
status: Incomplete → Triaged
Changed in snapd:
status: Triaged → In Progress
Revision history for this message
Samuele Pedroni (pedronis) wrote :
Revision history for this message
Samuele Pedroni (pedronis) wrote :

That PR has been merged, so the fix can be tested with the next snapd edge build.

Changed in snapd:
status: In Progress → Fix Committed
Changed in snapd:
milestone: none → 2.52
Changed in snapd:
status: Fix Committed → Fix Released
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.