{"action":"created","issue":{"url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/674","repository_url":"https://api.github.com/repos/avocado-framework/avocado-vt","labels_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/674/labels{/name}","comments_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/674/comments","events_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/674/events","html_url":"https://github.com/avocado-framework/avocado-vt/pull/674","id":172136183,"number":674,"title":"shared.unattended.JeOS-23.ks: Disable selinux","user":{"login":"ldoktor","id":1074021,"avatar_url":"https://avatars.githubusercontent.com/u/1074021?v=3","gravatar_id":"","url":"https://api.github.com/users/ldoktor","html_url":"https://github.com/ldoktor","followers_url":"https://api.github.com/users/ldoktor/followers","following_url":"https://api.github.com/users/ldoktor/following{/other_user}","gists_url":"https://api.github.com/users/ldoktor/gists{/gist_id}","starred_url":"https://api.github.com/users/ldoktor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldoktor/subscriptions","organizations_url":"https://api.github.com/users/ldoktor/orgs","repos_url":"https://api.github.com/users/ldoktor/repos","events_url":"https://api.github.com/users/ldoktor/events{/privacy}","received_events_url":"https://api.github.com/users/ldoktor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-19T13:52:55Z","updated_at":"2016-08-20T11:06:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/avocado-framework/avocado-vt/pulls/674","html_url":"https://github.com/avocado-framework/avocado-vt/pull/674","diff_url":"https://github.com/avocado-framework/avocado-vt/pull/674.diff","patch_url":"https://github.com/avocado-framework/avocado-vt/pull/674.patch"},"body":"The `selinux-policy` is not installed, while the `selinux` is set as\r\nenabled. For some reason this works on Fedora.23, but it's quite\r\ndangerous running with selinux enabled without policies defined.\r\n\r\nMy motivation is that I use this KS to create RHEL.7 kickstart and the\r\nlatest builds started failing with \"Failed to load SELinux policy.\".\r\n\r\nSigned-off-by: Lukáš Doktor <ldoktor@redhat.com>"},"comment":{"url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/comments/241193544","html_url":"https://github.com/avocado-framework/avocado-vt/pull/674#issuecomment-241193544","issue_url":"https://api.github.com/repos/avocado-framework/avocado-vt/issues/674","id":241193544,"user":{"login":"ldoktor","id":1074021,"avatar_url":"https://avatars.githubusercontent.com/u/1074021?v=3","gravatar_id":"","url":"https://api.github.com/users/ldoktor","html_url":"https://github.com/ldoktor","followers_url":"https://api.github.com/users/ldoktor/followers","following_url":"https://api.github.com/users/ldoktor/following{/other_user}","gists_url":"https://api.github.com/users/ldoktor/gists{/gist_id}","starred_url":"https://api.github.com/users/ldoktor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldoktor/subscriptions","organizations_url":"https://api.github.com/users/ldoktor/orgs","repos_url":"https://api.github.com/users/ldoktor/repos","events_url":"https://api.github.com/users/ldoktor/events{/privacy}","received_events_url":"https://api.github.com/users/ldoktor/received_events","type":"User","site_admin":false},"created_at":"2016-08-20T11:06:49Z","updated_at":"2016-08-20T11:06:49Z","body":"Sure, as far as it works, I'm fine with keeping it enabled in upstream. But do remember this as future version might stop working :wink:\r\n\r\nThis is the script I use to enable minimized RHEL\r\n```bash\r\n# Add unattended_install..url url to RHEL.7.devel and use different kickstart\r\ncat /usr/share/avocado-plugins-vt/shared/unattended/JeOS-23.ks | grep -v -e \"/fill-up-file\" > /usr/share/avocado-plugins-vt/shared/unattended/RHEL-7-nightly.ks\r\nsed -i \"s/^text$/GRAPHICAL_OR_TEXT/g\" /usr/share/avocado-plugins-vt/shared/unattended/RHEL-7-nightly.ks\r\nsed -i \"s/^part \\/ --fstype=ext4.*/autopart/g\" /usr/share/avocado-plugins-vt/shared/unattended/RHEL-7-nightly.ks\r\nsed -i \"s/^selinux --enforcing/selinux --disable/g\" /usr/share/avocado-plugins-vt/shared/unattended/RHEL-7-nightly.ks\r\nsed -i \"s/^%packages$/%packages --ignoremissing/g\" /usr/share/avocado-plugins-vt/shared/unattended/RHEL-7-nightly.ks\r\nfor NAME in aarch64 ppc64 ppc64le x86_64; do\r\n    cat >> /usr/share/avocado-plugins-vt/shared/cfg/guest-os/Linux/RHEL/7.devel/$NAME.cfg << EOF\r\n    unattended_install..url:\r\n        url = http://$RHEL_7_MIRROR/Server/$NAME/os/\r\n        unattended_file = unattended/RHEL-7-nightly.ks\r\nEOF\r\ndone\r\n```\r\n\r\nLet me close this PR, it was raised only to discuss the issue."}}
{"actor":{"display_login":"ldoktor"}}