diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-07-06 19:19:12 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-07-06 19:19:12 +0200 |
commit | 6e8c81ab7fe0c1dc5c3388b60fe2ae18a8394c75 (patch) | |
tree | 8e35e1c8737268de7273ebfd90f137a2a41d9644 | |
parent | f2a6270bd9716780c45a17a119854938071a65df (diff) | |
download | imagefish-6e8c81ab7fe0c1dc5c3388b60fe2ae18a8394c75.tar.gz |
fix selinux tweak
-rwxr-xr-x | scripts/install-redhat.sh | 5 |
1 files 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} |