The block-devices interfaceΒΆ
block-devices provides the ability to perform operations on raw disk block devices (e.g. /dev/sda, /dev/mmcblk0). This interface grants privileged access to the device.
Auto-connect: no Super-privileged: yes
Requires snapd version 2.37+.
When the plug sets allow-partitions boolean attribute to true, the interface will grant access to individual partition devices (e.g. /dev/sda1, /dev/mmcblk0p1). The plug needs to be declared in the following manner:
plugs:
block-devices:
allow-partitions: true
The allow-partitions attribute requires snapd version 2.71+.
Consumers of this interface require a snap declaration for distribution via the Snap Store.