Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=kernelbump.git;a=commitdiff;h=56ba75fbddccf50c799c4cda4972d3aabb8ba7d0

commit 56ba75fbddccf50c799c4cda4972d3aabb8ba7d0
Author: DeX77 <[email protected]>
Date:   Sun Sep 20 22:38:46 2015 +0200

grub2-2.00-14-x86_64

* use grub2.install to add adit=0 to grub default file

diff --git a/source/base/grub2/FrugalBuild b/source/base/grub2/FrugalBuild
index 50d6bd0..fdfcfb2 100644
--- a/source/base/grub2/FrugalBuild
+++ b/source/base/grub2/FrugalBuild
@@ -4,7 +4,7 @@
pkgname=grub2
_F_archive_name=grub
pkgver=2.00
-pkgrel=13
+pkgrel=14
pkgdesc="The GNU GRand Unified Bootloader"
url="http://www.gnu.org/software/grub/";
rodepends=('grub-theme-frugalware' 'scriptlet-core')
diff --git a/source/base/grub2/grub2.install b/source/base/grub2/grub2.install
index fea15e2..076a07a 100644
--- a/source/base/grub2/grub2.install
+++ b/source/base/grub2/grub2.install
@@ -8,6 +8,16 @@ post_install()
fi
}

+post_upgrade() {
+
+       echo "Updating kernel cmdline to include audit=0"
+       if [ grep -v -q audit /etc/default/grub ]
+               sed -i 's/GRUB_CMDLINE_LINUX="/GRUB_CMDLINE_LINUX="audit=0 /' 
/etc/default/grub
+               sed -i 
's/GRUB_CMDLINE_LINUX_DEFAULT="/GRUB_CMDLINE_LINUX_DEFAULT="audit=0 /' 
/etc/default/grub
+               /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
+       fi
+}
+
op=$1
shift
$op $*
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to