btrfs-progs: fix scrub behavior when sandboxed
This commit is contained in:
@@ -13,10 +13,13 @@ in
|
|||||||
"/sys/block"
|
"/sys/block"
|
||||||
"/sys/dev/block"
|
"/sys/dev/block"
|
||||||
"/sys/devices"
|
"/sys/devices"
|
||||||
|
#vvv required for `sudo btrfs scrub start`
|
||||||
|
"/sys/fs"
|
||||||
#vvv required for `sudo btrfs scrub status` to show stats
|
#vvv required for `sudo btrfs scrub status` to show stats
|
||||||
"/var/lib/btrfs"
|
"/var/lib/btrfs"
|
||||||
];
|
];
|
||||||
sandbox.tryKeepUsers = true;
|
sandbox.tryKeepUsers = true;
|
||||||
|
sandbox.keepPids = true; # required for `sudo btrfs scrub start`
|
||||||
sandbox.capabilities = [ "sys_admin" ]; # for `btrfs scrub`
|
sandbox.capabilities = [ "sys_admin" ]; # for `btrfs scrub`
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user