app-emulation/anbox: lxc patch to use correct config_item's
This commit is contained in:
parent
dbb9d09476
commit
72348ae77a
@ -60,7 +60,7 @@ CONFIG_CHECK="
|
||||
~TMPFS_XATTR
|
||||
"
|
||||
|
||||
PATCHES=( ""${FILESDIR}"/no_bundled_sdbus.patch" )
|
||||
PATCHES=( ""${FILESDIR}"/no_bundled_sdbus.patch" ""${FILESDIR}"/lxc.patch" )
|
||||
|
||||
pkg_pretend() {
|
||||
if use !systemd; then
|
||||
|
@ -60,7 +60,7 @@ CONFIG_CHECK="
|
||||
~TMPFS_XATTR
|
||||
"
|
||||
|
||||
PATCHES=( ""${FILESDIR}"/no_bundled_sdbus-r1.patch" )
|
||||
PATCHES=( ""${FILESDIR}"/no_bundled_sdbus-r1.patch" ""${FILESDIR}"/lxc.patch" )
|
||||
|
||||
pkg_pretend() {
|
||||
if use !systemd; then
|
||||
|
@ -60,7 +60,7 @@ CONFIG_CHECK="
|
||||
~TMPFS_XATTR
|
||||
"
|
||||
|
||||
PATCHES=( ""${FILESDIR}"/no_bundled_sdbus-r1.patch" )
|
||||
PATCHES=( ""${FILESDIR}"/no_bundled_sdbus-r1.patch" ""${FILESDIR}"/lxc.patch" )
|
||||
|
||||
pkg_pretend() {
|
||||
if use !systemd; then
|
||||
|
16
app-emulation/anbox/files/lxc.patch
Normal file
16
app-emulation/anbox/files/lxc.patch
Normal file
@ -0,0 +1,16 @@
|
||||
https://github.com/anbox/anbox/pull/1827
|
||||
--- a/src/anbox/container/lxc_container.cpp
|
||||
+++ b/src/anbox/container/lxc_container.cpp
|
||||
@@ -343,8 +343,10 @@ void LxcContainer::start(const Configuration &configuration) {
|
||||
set_config_item(lxc_config_tty_max_key, "0");
|
||||
set_config_item(lxc_config_uts_name_key, "anbox");
|
||||
|
||||
- set_config_item("lxc.group.devices.deny", "");
|
||||
- set_config_item("lxc.group.devices.allow", "");
|
||||
+ set_config_item("lxc.cgroup.devices.deny", "");
|
||||
+ set_config_item("lxc.cgroup.devices.allow", "");
|
||||
+ set_config_item("lxc.cgroup2.devices.deny", "");
|
||||
+ set_config_item("lxc.cgroup2.devices.allow", "");
|
||||
|
||||
// We can't move bind-mounts, so don't use /dev/lxc/
|
||||
set_config_item(lxc_config_tty_dir_key, "");
|
Loading…
Reference in New Issue
Block a user