Ignore the "name=systemd" hierarchy by setting the autoconf
--enable-opaque-hierarchy flag equal to "name=systemd".  This
instructs libcgroup to ignore mounts named "name=systemd" and
thus these mounts aren't added to the cg_mount_table[].

Suggested-by: Michal Koutný <mkou...@suse.com>
Signed-off-by: Tom Hromatka <tom.hroma...@oracle.com>
---
 .github/actions/setup-libcgroup/action.yml | 2 +-
 bootstrap.sh                               | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/actions/setup-libcgroup/action.yml 
b/.github/actions/setup-libcgroup/action.yml
index 6eeb169d5709..1d88f388fe70 100644
--- a/.github/actions/setup-libcgroup/action.yml
+++ b/.github/actions/setup-libcgroup/action.yml
@@ -28,7 +28,7 @@ runs:
     shell: bash
   - run: ./bootstrap.sh
     shell: bash
-  - run: CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc 
--localstatedir=/var --enable-code-coverage
+  - run: CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc 
--localstatedir=/var --enable-code-coverage 
--enable-opaque-hierarchy="name=systemd"
     shell: bash
   - run: make
     shell: bash
diff --git a/bootstrap.sh b/bootstrap.sh
index 2046c2291610..1da41e2839a5 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -27,6 +27,7 @@ test -d m4 || mkdir m4
 autoreconf -fi
 rm -fr autom4te.cache
 
-CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var
+CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var \
+       --enable-opaque-hierarchy="name=systemd"
 
 make clean
-- 
2.26.2



_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to