Skip to content

Commit

Permalink
crio_cgroupv2_imagefs.ign: run semanage before crio install
Browse files Browse the repository at this point in the history
  • Loading branch information
bart0sh committed Dec 16, 2024
1 parent a4a9697 commit 342220a
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_imagefs.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 Graphroot\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 /var/lib/imagefs\nExecStart=restorecon -R -v /var/lib/imagefs\n\n[Install]\nWantedBy=multi-user.target\n",
"contents": "[Unit]\nDescription=Label Graphroot\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 /var/lib/imagefs\nExecStart=restorecon -R -v /var/lib/imagefs\n\n[Install]\nWantedBy=multi-user.target\n",
"enabled": true,
"name": "label-graphroot.service"
}
Expand Down
3 changes: 2 additions & 1 deletion jobs/e2e_node/crio/templates/base/imagefs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ systemd:
contents: |
[Unit]
Description=Label Graphroot
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_imagefs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ systemd:
contents: |
[Unit]
Description=Label Graphroot
After=crio-install.service
After=selinux-install.service
Before=crio-install.service
[Service]
Type=oneshot
Expand Down

0 comments on commit 342220a

Please sign in to comment.