ubuntu-image should reserve 1-5% for root when creating filesystems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
New
|
Undecided
|
Unassigned | ||
snapd |
Triaged
|
Medium
|
Unassigned |
Bug Description
STORY:
Filling the writable system means you can't uninstall or install apps and causes issues in the system as a whole.
STEPS:
1. Flash and boot the ubuntu-core 16 image on dragonboard
2. Run the command df -h to list the available space on various mounted partitions
3. Using fallocate, occupy all the available space on /writable partition
4. Install some snaps to occupy the remaining space to make sure df -h output is similar to http://
5. There would be a point where, snap install and other snap commands would start failing with following error
EXPECTED:
I expect 5% to be reserved so the system is still usable
ACTUAL:
You can completely fill the system and then not be able to do anything with the packages on it.
description: | updated |
summary: |
- File system should 5% Ubuntu-image + File system should reserve 5% Ubuntu-image |
summary: |
- ubuntu-image should reserve 5% for root when creating filesystems + ubuntu-image should reserve 1-5% for root when creating filesystems |
no longer affects: | ubuntu-image (Ubuntu) |
I doubt the utility of reserving 5% of disk space for any specific group.
If you set the group to one of snapd's groups, then snapd can of course fill the disk with too many 'snap install' commands.
If you set the group to one that snapd does not run as, then snapd cannot use the free space when trying to use 'snap remove'.
Thanks