Add update-grub script
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: grub
|
||||
description: The GRand Unified Bootloader
|
||||
version: 2.12
|
||||
revision: 6
|
||||
revision: 7
|
||||
url: https://www.gnu.org/software/grub/
|
||||
license: GPL3-or-later
|
||||
architecture: any
|
||||
|
||||
@@ -2,4 +2,4 @@ trigger_operations: ["install", "upgrade", "remove"]
|
||||
target_type: "path"
|
||||
targets: ["boot/vmlinu*"]
|
||||
depends: ["grub"]
|
||||
run: "grub-mkconfig -o /boot/grub/grub.cfg"
|
||||
run: "/usr/sbin/update-grub"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
@@ -56,6 +56,9 @@ package() {
|
||||
# Install grub default file
|
||||
install -Dm644 "$BPM_WORKDIR"/grub.default "$BPM_OUTPUT"/etc/default/grub
|
||||
|
||||
# Install update-grub script
|
||||
install -Dm755 "$BPM_WORKDIR"/update-grub.sh "$BPM_OUTPUT"/usr/sbin/update-grub
|
||||
|
||||
# Install BPM hook
|
||||
install -Dm644 "$BPM_WORKDIR"/20-grub.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/20-grub.bpmhook
|
||||
|
||||
|
||||
Reference in New Issue
Block a user