From 87b659b4273e1dc913c63b577941e2b2bf82456f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 2 Jul 2012 19:41:40 +0200 Subject: [PATCH] grub: provide update-grub wrapper for n000bs. --- srcpkgs/grub/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template index 051ecc44d7..3e437bae85 100644 --- a/srcpkgs/grub/template +++ b/srcpkgs/grub/template @@ -1,7 +1,7 @@ # Template file for 'grub' pkgname=grub version="2.00" -revision=2 +revision=3 build_style=gnu-configure configure_args="--disable-werror" makedepends="flex libusb-compat-devel ncurses-devel freetype-devel @@ -35,4 +35,9 @@ post_install() { etc/kernel.d/post-install 50-grub vinstall ${FILESDIR}/kernel.d/grub.post 750 \ etc/kernel.d/post-remove 50-grub + + # update-grub for noobs. + printf "#!/bin/sh\ngrub-mkconfig -o /boot/grub/grub.cfg\nexit \$?\n" >> \ + ${DESTDIR}/usr/sbin/update-grub + chmod 755 ${DESTDIR}/usr/sbin/update-grub }