From 6e8c81ab7fe0c1dc5c3388b60fe2ae18a8394c75 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 6 Jul 2017 19:19:12 +0200 Subject: fix selinux tweak --- scripts/install-redhat.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install-redhat.sh b/scripts/install-redhat.sh index a705f7a..727b0b8 100755 --- a/scripts/install-redhat.sh +++ b/scripts/install-redhat.sh @@ -192,9 +192,10 @@ if test -f ${dest}/etc/selinux/config; then # Ask for relabel. # Put selinux into permissive, relabel might fail otherwise. # After first boot (which relabels) setting enforcing should work. - sed -i -e 's/^SELINUX=.*/SELINUX=permissive/' \ + sudo sed -i \ + -e 's/^SELINUX=.*/SELINUX=permissive/' \ ${dest}/etc/selinux/config - touch "${dest}/.autorelabel" + sudo touch "${dest}/.autorelabel" fi sudo rm -rf "${dest}/var/cache/"{dnf,yum} -- cgit