Skip to content

Commit

Permalink
Pass -f to rm
Browse files Browse the repository at this point in the history
Otherwise it will fail if /.autorelabel doesn’t exist.
  • Loading branch information
DemiMarie committed Dec 23, 2022
1 parent e973bb1 commit 91d3a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm-systemd/qubes-relabel-root.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ RemainAfterExit=yes
BindPaths=/:/mnt:norbind
ExecStart=/usr/sbin/setfiles -r /mnt -- /etc/selinux/targeted/contexts/files/file_contexts /mnt
ExecStart=/bin/touch /.qubes-relabeled
ExecStart=/bin/rm /.autorelabel
ExecStartPost=/usr/bin/systemctl --force -- poweroff
ExecStart=/bin/rm -f /.autorelabel
ExecStart=/usr/bin/systemctl --force poweroff

[Install]
WantedBy=multi-user.target selinux-autorelabel.target

0 comments on commit 91d3a10

Please sign in to comment.