diff --git a/sysext.just b/sysext.just index 47de3c7..14f45d7 100644 --- a/sysext.just +++ b/sysext.just @@ -298,6 +298,11 @@ reset-selinux-labels target: SUDO="sudo" fi + pre_commands="" + if [[ -n "{{pre_commands}}" ]]; then + pre_commands+="{{pre_commands}} ; " + fi + filecontexts="/etc/selinux/targeted/contexts/files/file_contexts" echo "🏷️ Resetting SELinux labels" podman run --rm -ti \ @@ -307,7 +312,7 @@ reset-selinux-labels target: --security-opt label=disable \ --privileged \ "{{target}}" \ - bash -c "dnf install -y ./rpms/* && cd rootfs && setfiles -r . ${filecontexts} . && chcon --user=system_u --recursive ." + bash -c "${pre_commands}dnf install -y ./rpms/* && cd rootfs && setfiles -r . ${filecontexts} . && chcon --user=system_u --recursive ." # Creates the EROFS sysext file build-erofs target: