diff options
author | yar | 2017-04-01 11:36:56 -0700 |
---|---|---|
committer | yar | 2017-04-01 11:37:34 -0700 |
commit | 3228686982d87f5ec81dac44dabb5c0bf9ed9a88 (patch) | |
tree | 959f0ec7576e4907b3a04aba530896e99da070be | |
parent | c4b3c4e790ded3f3a966b36db7d9f10ce542ff0e (diff) | |
download | aur-3228686982d87f5ec81dac44dabb5c0bf9ed9a88.tar.gz |
automatically rebuild grub menu
idk why arch's mainline packages don't use pacman hooks to rebuild grub. maybe i'll find out
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | 98-linux-linode.hook (renamed from hook) | 0 | ||||
-rw-r--r-- | 99-grub-ll.hook | 10 | ||||
-rw-r--r-- | PKGBUILD | 9 |
4 files changed, 21 insertions, 6 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Sat Apr 1 07:34:13 UTC 2017 +# Sat Apr 1 18:36:39 UTC 2017 pkgbase = linux-linode pkgdesc = Kernel for Linode servers pkgver = 4.10.8 - pkgrel = 3 + pkgrel = 4 url = https://github.com/yardenac/linux-linode install = install arch = i686 @@ -30,7 +30,8 @@ pkgbase = linux-linode source = config source = config.x86_64 source = 08_linux_linode - source = hook + source = 98-linux-linode.hook + source = 99-grub-ll.hook source = preset sha512sums = c3690125a8402df638095bd98a613fcf1a257b81de7611c84711d315cd11e2634ab4636302b3742aedf1e3ba9ce0fea53fe8c7d48e37865d8ee5db3565220d90 sha512sums = SKIP @@ -40,6 +41,7 @@ pkgbase = linux-linode sha512sums = dc76adc365f1fff95a076982b8cfc595fbee5093185b2a298212e59adccb2c12b0f80d79ab0a9038b6efbe265515d55998b6647817ad080dbe1ca74e010f7361 sha512sums = e0a9a1867768634307207e8b3e4eacc57ba11c1848d8cdf78cfebdcfd9428af44041cd069285e99ba42d088cc4dc11648bfdfdb85dd2083de6842924d8f74ed4 sha512sums = c57a6c8d9978cb6a1034bed33ba5e06bef9b134f22113761798d4fa46e8091e7b0bd26f3a14d79122ba780b2f7a93ca26850f4da6a654f81b34cc79c242f683f + sha512sums = db9080b2548e4dcd61eaaf20cd7d37cbbc8c204ce85a2e3408d0671f6b26010f77a61affd2c77e809768714eca29d3afb64765a3f2099317a2c928eff3feb4cf sha512sums = 62870a08f000abfe8eb1f50271afdf04686af108554f7629dc5e1d7610ad14bdc9cd14d2609270b83f9edb745a520b81fa7bfb92ebcc28a146df040c895b549b pkgname = linux-linode diff --git a/hook b/98-linux-linode.hook index f1bed0a50515..f1bed0a50515 100644 --- a/hook +++ b/98-linux-linode.hook diff --git a/99-grub-ll.hook b/99-grub-ll.hook new file mode 100644 index 000000000000..fe2f64ce4ce9 --- /dev/null +++ b/99-grub-ll.hook @@ -0,0 +1,10 @@ +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Target = etc/grub.d/* + +[Action] +Description = Updating grub menu +When = PostTransaction +Exec = /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg @@ -6,7 +6,7 @@ _basekernel=4.10 _kernelname=${pkgname#linux} _srcname=linux-${_basekernel} pkgver=${_basekernel}.8 -pkgrel=3 +pkgrel=4 arch=('i686' 'x86_64') url="https://github.com/yardenac/linux-linode" license=(GPL2) @@ -17,7 +17,8 @@ source=("https://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar."{xz,sign} 'config' 'config.x86_64' '08_linux_linode' - 'hook' + '98-linux-linode.hook' + '99-grub-ll.hook' 'preset') sha512sums=('c3690125a8402df638095bd98a613fcf1a257b81de7611c84711d315cd11e2634ab4636302b3742aedf1e3ba9ce0fea53fe8c7d48e37865d8ee5db3565220d90' 'SKIP' '9760254a63fea330e33b514dda457a3bf33da6f8e06c281fc3fb36ba4c022df8200d2a04d49f4acc9ce0c9f86cbfda7edc724431ed378be3288eb299510add2e' 'SKIP' @@ -25,6 +26,7 @@ sha512sums=('c3690125a8402df638095bd98a613fcf1a257b81de7611c84711d315cd11e2634ab 'dc76adc365f1fff95a076982b8cfc595fbee5093185b2a298212e59adccb2c12b0f80d79ab0a9038b6efbe265515d55998b6647817ad080dbe1ca74e010f7361' 'e0a9a1867768634307207e8b3e4eacc57ba11c1848d8cdf78cfebdcfd9428af44041cd069285e99ba42d088cc4dc11648bfdfdb85dd2083de6842924d8f74ed4' 'c57a6c8d9978cb6a1034bed33ba5e06bef9b134f22113761798d4fa46e8091e7b0bd26f3a14d79122ba780b2f7a93ca26850f4da6a654f81b34cc79c242f683f' + 'db9080b2548e4dcd61eaaf20cd7d37cbbc8c204ce85a2e3408d0671f6b26010f77a61affd2c77e809768714eca29d3afb64765a3f2099317a2c928eff3feb4cf' '62870a08f000abfe8eb1f50271afdf04686af108554f7629dc5e1d7610ad14bdc9cd14d2609270b83f9edb745a520b81fa7bfb92ebcc28a146df040c895b549b') validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linux Torvalds @@ -70,7 +72,8 @@ package_linux-linode() { cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuzll-${pkgname}" install -D -m644 vmlinux "${pkgdir}/lib/modules/${_kernver}/build/vmlinux" install -D -m644 "${srcdir}/preset" "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset" - install -D -m644 "${srcdir}/hook" "${pkgdir}/usr/share/libalpm/hooks/99-linux-linode.hook" + install -D -m644 "${srcdir}/98-linux-linode.hook" "${pkgdir}/usr/share/libalpm/hooks/98-linux-linode.hook" + install -D -m644 "${srcdir}/99-grub-ll.hook" "${pkgdir}/usr/share/libalpm/hooks/99-grub-ll.hook" install -D -m755 "${srcdir}/08_linux_linode" "${pkgdir}/etc/grub.d/08_linux_linode" sed \ -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/" \ |