Can remove required-snaps

Bug #1649837 reported by Didier Roche on 2016-12-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Medium
Samuele Pedroni

Bug Description

Snap 2.17 (?), installed on 14th december with snaps from the beta channel

1. create a model assertion with:
  "required-snaps": ["hello", "hello-world"],
2. build it with ubuntu-image. You will see hello and hello-world being installed
3. flash that image on a hw, once console-conf config is done, check that hello and hello-world are indeed installed
4. snap remove hello
-> success.

The term "required" in "required-snaps" seems to intend that you can't remove those snaps from this model. It's not the case.
Either the term should be changed or snapd fixed to not remove them.

Samuele Pedroni (pedronis) wrote :

no, the intention is correct, required-snaps should not be removable, there's actually work in progress with PRs about this

Changed in snappy:
status: New → In Progress
assignee: nobody → Samuele Pedroni (pedronis)
Samuele Pedroni (pedronis) wrote :

this should be prevented now for fresh images starting with 2.22, we are exploring a couple of options about enforcing it for pre-existing images

Zygmunt Krynicki (zyga) wrote :

Samuele, is there something that we can update this bug with? There have been countless changes to this area since 2017 but I cannot comfortably and honestly say that I'm sure this is now fixed.

affects: snappy → snapd
Zygmunt Krynicki (zyga) wrote :

As discussed on IRC a moment ago this is not implemented yet but we are much closer with various infrastructure to be able to fix it.

I'm moving to to confirmed in the meantime, to expect the current status.

Changed in snapd:
status: In Progress → Confirmed
Changed in snapd:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers