]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fire insufficient
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 1 Sep 2024 21:08:19 +0000 (15:08 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 1 Sep 2024 21:12:50 +0000 (15:12 -0600)
.github/actions/freeradius-deps/action.yml

index dde8e524ba8da0f05ecf804141636fec7def0547..7e724ae1a12496dbadc35f7f47f9e34cb691a4bd 100644 (file)
@@ -32,15 +32,24 @@ runs:
         sudo dpkg-reconfigure man-db
         sudo sed -i 's/^update_initramfs=.*/update_initramfs=no/' /etc/initramfs-tools/update-initramfs.conf
 
-    # Basic package installation on Ubuntu24.04of packages fails with:
+    #
+    # Basic package installation on Ubuntu24.04 fails with:
     #   ERROR: Operation {'runbindable'} cannot have a source. Source = AARE('/')
     # ...unless apparmor is disabled.
+    #
+    # Even with apparmor disabled and purged, some packages still attempt to call
+    # apparmor utilities.
+    #
+    # Here we alias the apparmor utilities to /bin/true to prevent the build from
+    # failing.
+    #
     - name: Disable AppArmor
       if: ${{ runner.os != 'macOS' }}
       run: |
         sudo systemctl disable apparmor || true
         sudo systemctl stop apparmor || true
-        sudo apt purge apparmor || true
+        sudo apt purge -y apparmor
+        sudo update-alternatives --install /usr/bin/aa-complain aa-complain /bin/true 60
       shell: bash
 
     #