Skip to content

Commit

Permalink
07fix-selinux-labels: fix service ordering
Browse files Browse the repository at this point in the history
This fixes a mistake in b182027. Before/After directives need to
go in the [Unit] section, not [Service].
  • Loading branch information
dustymabe committed Nov 1, 2024
1 parent 7ef7e40 commit 044c9a0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Description=Fix mislabeled or unlabeled SELinux contexts on files
Documentation=https://github.com/coreos/fedora-coreos-tracker/issues/1771
Documentation=https://github.com/coreos/fedora-coreos-tracker/issues/1772
ConditionPathExists=!/var/lib/coreos-fix-selinux-labels.stamp
# Run before zincati so we're not creating new files on the filesystem
# while we are fixing labels on existing files.
Before=zincati.service

[Service]
Type=oneshot
Expand All @@ -11,9 +14,6 @@ ExecStartPre=/bin/touch /var/lib/coreos-fix-selinux-labels.stamp
ExecStart=/usr/libexec/coreos-fix-selinux-labels
RemainAfterExit=yes
MountFlags=slave
# Run before zincati so we're not creating new files on the filesystem
# while we are fixing labels on existing files.
Before=zincati.service

[Install]
WantedBy=multi-user.target

0 comments on commit 044c9a0

Please sign in to comment.