meta: ability to specify capabilities for stages
Add new stage metadata `CAPABILITIES` where stages can request additional capabilities that are not in the default set. Currently this is not used by any stage since the default set contains the sum of all needed capabilities.
This commit is contained in:
parent
bdcc9ea218
commit
d14e5f3ee8
2 changed files with 15 additions and 3 deletions
|
|
@ -157,7 +157,7 @@ class Stage:
|
|||
build_root.mount_boot = bool(self.build)
|
||||
|
||||
# drop capabilities other than `DEFAULT_CAPABILITIES`
|
||||
build_root.caps = DEFAULT_CAPABILITIES
|
||||
build_root.caps = DEFAULT_CAPABILITIES | self.info.caps
|
||||
|
||||
tmpdir = store.tempdir(prefix="buildroot-tmp-")
|
||||
tmpdir = cm.enter_context(tmpdir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue