]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
bootstrap: github: Ignore systemd hierarchy
authorTom Hromatka <tom.hromatka@oracle.com>
Mon, 29 Mar 2021 16:46:52 +0000 (16:46 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 29 Mar 2021 18:39:13 +0000 (18:39 +0000)
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ý <mkoutny@suse.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
.github/actions/setup-libcgroup/action.yml
bootstrap.sh

index 6eeb169d5709262a193a096f18c4e2055d94bf59..1d88f388fe70fd78547d8cd1982726f4935ca79b 100644 (file)
@@ -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
index 2046c2291610ae49dfa6450889fbd5b2fad8e069..1da41e2839a5fe2dec495ff89301640321e838dc 100755 (executable)
@@ -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