Skip to content

Commit

Permalink
rhcos-usrlocal-selinux-fixup: fix ExecStart escape
Browse files Browse the repository at this point in the history
Silence journal message:

    systemd[1]: /etc/systemd/system/rhcos-usrlocal-selinux-fixup.service:16: Ignoring unknown escape sequences: "if ! test -f /var/lib/.coreos-usrlocal-fixup.stamp; then find /var/usrlocal/sbin -executable -mount -exec chcon -v --reference=/usr/sbin {} \; && touch /var/lib/.coreos-usrlocal-fixup.stamp; fi"
  • Loading branch information
bgilbert committed Nov 16, 2021
1 parent ceb0a64 commit 2f32822
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RemainAfterExit=yes
# context on each boot.
ExecStart=chcon -v --reference=/usr/sbin /usr/local/sbin
# Only do this recursive relabeling once.
ExecStart=/bin/sh -c 'if ! test -f /var/lib/.coreos-usrlocal-fixup.stamp; then find /var/usrlocal/sbin -executable -mount -exec chcon -v --reference=/usr/sbin {} \; && touch /var/lib/.coreos-usrlocal-fixup.stamp; fi'
ExecStart=/bin/sh -c 'if ! test -f /var/lib/.coreos-usrlocal-fixup.stamp; then find /var/usrlocal/sbin -executable -mount -exec chcon -v --reference=/usr/sbin {} \\; && touch /var/lib/.coreos-usrlocal-fixup.stamp; fi'

[Install]
WantedBy=sysinit.target

0 comments on commit 2f32822

Please sign in to comment.