diff --git a/clusters/k8s01/system-upgrades/iscsid_hotfix.yaml b/clusters/k8s01/system-upgrades/iscsid_hotfix.yaml index ba05e94348cb7a88f462065ca198430abf122ad7..ea4f6a7801ced13132dfd19512a5d524749fdd2f 100644 --- a/clusters/k8s01/system-upgrades/iscsid_hotfix.yaml +++ b/clusters/k8s01/system-upgrades/iscsid_hotfix.yaml @@ -24,8 +24,9 @@ stringData: secrets="$(dirname $0)" semodule_dir="$(mktemp -d)" + cp "${secrets}/iscsid_hotfix.te" "${semodule_dir}/iscsid_hotfix.te" systemd-run --same-dir --wait --collect --service-type=exec dnf install -y selinux-policy-devel - systemd-run --same-dir --wait --collect --service-type=exec checkmodule -M -m -o "${semodule_dir}/iscsid_hotfix.mod" "$secrets/iscsid_hotfix.te" + systemd-run --same-dir --wait --collect --service-type=exec checkmodule -M -m -o "${semodule_dir}/iscsid_hotfix.mod" "${semodule_dir}/iscsid_hotfix.te" systemd-run --same-dir --wait --collect --service-type=exec semodule_package -o "${semodule_dir}/iscsid_hotfix.pp" "${semodule_dir}/iscsid_hotfix.mod" systemd-run --same-dir --wait --collect --service-type=exec semodule -i "${semodule_dir}/iscsid_hotfix.pp"