Skip to content

Commit

Permalink
Also use the builtin SanitizePlugsSlots for classic builds
Browse files Browse the repository at this point in the history
  • Loading branch information
upils committed Dec 5, 2023
1 parent 9997df4 commit 4c1f71b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/statemachine/classic_states.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (

"github.com/snapcore/snapd/image"
"github.com/snapcore/snapd/image/preseed"
"github.com/snapcore/snapd/interfaces/builtin"
"github.com/snapcore/snapd/osutil"
"github.com/snapcore/snapd/seed/seedwriter"
"github.com/snapcore/snapd/snap"
Expand Down Expand Up @@ -726,8 +727,8 @@ func (stateMachine *StateMachine) prepareClassicImage() error {
imageOpts.Channel = stateMachine.commonFlags.Channel
}

// plug/slot sanitization not used by snap image.Prepare, make it no-op.
snap.SanitizePlugsSlots = func(snapInfo *snap.Info) {}
// plug/slot sanitization needed by provider handling
snap.SanitizePlugsSlots = builtin.SanitizePlugsSlots

// check if the rootfs is already preseeded. This can happen when building from a
// rootfs tarball
Expand Down

0 comments on commit 4c1f71b

Please sign in to comment.