From 0c3aea3aee9eb4271035c5ab7035852db2d7f546 Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Mon, 14 Nov 2022 19:51:44 -0500 Subject: [PATCH] Fix bogus sed call -i was being considered an argument for -e, but it isn't syntactically correct. --- rpm_spec/core-agent.spec.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpm_spec/core-agent.spec.in b/rpm_spec/core-agent.spec.in index 22e5fd3a3..c91e4a5b3 100644 --- a/rpm_spec/core-agent.spec.in +++ b/rpm_spec/core-agent.spec.in @@ -645,7 +645,6 @@ fi %selinux_modules_install %{_datadir}/selinux/packages/qubes-qfile-unpacker.pp %{_datadir}/selinux/packages/qubes-xendriverdomain.pp %{_datadir}/selinux/packages/qubes-misc.pp { -set -x flock --no-fork -- 9 flock --no-fork -- 8 for i in /etc/selinux/*/contexts/files/file_contexts.subs; do @@ -717,7 +716,7 @@ if [ ! -f /.qubes-relabeled ]; then /etc/selinux/targeted/contexts/files/file_contexts \ /mnt/proc /mnt/sys /mnt/dev /mnt/tmp /mnt/rw /mnt/home \ /mnt/usr/lib/systemd - sed -e -i 's/^SELINUX=disabled/SELINUX=permissive/' /etc/selinux/config + sed -i -- 's/^SELINUX=disabled/SELINUX=permissive/' /etc/selinux/config touch /.autorelabel fi exit 0