Skip to content

Commit

Permalink
Merge pull request #33975 from bart0sh/PR055-crio_cgroupv2_splitfs-ru…
Browse files Browse the repository at this point in the history
…n-semanage-before-crio

crio_cgroupv2_splitfs.ign: run semanage before crio install
  • Loading branch information
k8s-ci-robot authored Dec 17, 2024
2 parents fcd94c9 + e0b8085 commit fbb1e3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jobs/e2e_node/crio/crio_cgroupv2_splitfs.ign
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"name": "authorized-key.service"
},
{
"contents": "[Unit]\nDescription=Label ImageStore\nAfter=crio-install.service\n\n[Service]\nType=oneshot\nExecStart=rpm-ostree install \\\n -y \\\n --apply-live \\\n --allow-inactive \\\n policycoreutils-python-utils\nExecStart=semanage fcontext -a -e /var/lib/containers/storage /var/lib/images\nExecStart=restorecon -R -v /var/lib/images\n\n[Install]\nWantedBy=multi-user.target\n",
"contents": "[Unit]\nDescription=Label ImageStore\nAfter=selinux-install.service\nBefore=crio-install.service\n\n[Service]\nType=oneshot\nExecStart=rpm-ostree install \\\n -y \\\n --apply-live \\\n --allow-inactive \\\n policycoreutils-python-utils\nExecStart=semanage fcontext -a -e /var/lib/containers/storage /var/lib/images\nExecStart=restorecon -R -v /var/lib/images\n\n[Install]\nWantedBy=multi-user.target\n",
"enabled": true,
"name": "label-imagestore.service"
}
Expand Down
3 changes: 2 additions & 1 deletion jobs/e2e_node/crio/templates/base/splitfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ systemd:
contents: |
[Unit]
Description=Label ImageStore
After=crio-install.service
After=selinux-install.service
Before=crio-install.service
[Service]
Type=oneshot
Expand Down
3 changes: 2 additions & 1 deletion jobs/e2e_node/crio/templates/crio_cgroupv2_splitfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ systemd:
contents: |
[Unit]
Description=Label ImageStore
After=crio-install.service
After=selinux-install.service
Before=crio-install.service
[Service]
Type=oneshot
Expand Down

0 comments on commit fbb1e3e

Please sign in to comment.