Make ubuntu-image a classic snap

Bug #1638645 reported by Barry Warsaw
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Image
Fix Released
High
Barry Warsaw

Bug Description

Building the snap with confinement: devmode is a pain because it makes the ubuntu-image snap much less discoverable (by design of snapd). Why do we need devmode anyway? We ship our own mkfs.ext4 so we shouldn't need sudo in the snap.

Let's try to get rid of it.

Barry Warsaw (barry)
Changed in ubuntu-image:
assignee: nobody → Barry Warsaw (barry)
Revision history for this message
Oliver Grawert (ogra) wrote :

when setting up the snap build on launchpad you can use the ubuntu-image PPA as default archive and put the e2fslibs (that cause this requirement) into stage-packages, that way devmode should be avoidable since the snap will ship its own version of e2fslibs so no sudo will be needed.

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1638645] Re: Can we get rid of confinement: devmode?

On Wed, Nov 02, 2016 at 05:33:45PM -0000, Oliver Grawert wrote:
> when setting up the snap build on launchpad you can use the ubuntu-image
> PPA as default archive and put the e2fslibs (that cause this
> requirement) into stage-packages,

That does not cause this requirement, the snap as it exists today is already
bundling the correct version of e2fsprogs.

Barry Warsaw (barry)
Changed in ubuntu-image:
status: New → In Progress
Revision history for this message
Steve Langasek (vorlon) wrote : Re: Can we get rid of confinement: devmode?

The root reason we have to use devmode is filesystem access. By definition, ubuntu-image is a tool that you use to manipulate files provided to it from outside its snap context. This ties in with some future work that I know has been planned for snapd, but I don't think there's anything that can realistically be done to remove devmode for the 0.11 release.

Revision history for this message
Barry Warsaw (barry) wrote :

At a minimum, we'll need 'home' interface since my experimental branch failed without it. I am going to de-milestone this from 0.11.

Changed in ubuntu-image:
milestone: 0.11 → none
Barry Warsaw (barry)
Changed in ubuntu-image:
status: In Progress → Confirmed
Barry Warsaw (barry)
Changed in ubuntu-image:
milestone: none → 1.0
Revision history for this message
Barry Warsaw (barry) wrote :

As @vorlon points out, once u-i is a classic snap, we can get rid of the ugly /tmp handling code.

summary: - Can we get rid of confinement: devmode?
+ Make ubuntu-image a classic snap
Barry Warsaw (barry)
Changed in ubuntu-image:
status: Confirmed → In Progress
importance: Medium → High
Barry Warsaw (barry)
Changed in ubuntu-image:
status: In Progress → Fix Committed
Barry Warsaw (barry)
Changed in ubuntu-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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