Bug 1292770

Summary: preserve audit in bootloader
Product: [Fedora] Fedora Reporter: Terje Røsten <terje.rosten>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-21 21:41:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Terje Røsten 2015-12-18 10:10:36 UTC
Description of problem:

Due to audit spamming: 
 https://bugzilla.redhat.com/show_bug.cgi?id=1227379

I need audit=0 on kernel cmdline, however anaconda don't preserve this setting
if set on kernel cmdline on kickstart install.

Fix:

add audit to global_preserve_args in pyanaconda/bootloader.py:


diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 63130f8..44cdd3c 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -236,7 +236,7 @@ class BootLoader(object):
                             "noht", "acpi", "video", "pci", "nodmraid",
                             "nompath", "nomodeset", "noiswmd", "fips",
                             "selinux", "biosdevname", "ipv6.disable",
-                            "net.ifnames"]
+                            "net.ifnames", "audit"]
     preserve_args = []
 
     _trusted_boot = False

Comment 1 Brian Lane 2015-12-21 21:41:21 UTC
bootloader --append="audit=0" should handle this for you.

https://github.com/rhinstaller/pykickstart/blob/master/docs/kickstart-docs.rst#bootloader