Add update-grub script

This commit is contained in:
2025-08-23 19:40:53 +03:00
parent f5df158bbf
commit f77aca86b8
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: grub name: grub
description: The GRand Unified Bootloader description: The GRand Unified Bootloader
version: 2.12 version: 2.12
revision: 6 revision: 7
url: https://www.gnu.org/software/grub/ url: https://www.gnu.org/software/grub/
license: GPL3-or-later license: GPL3-or-later
architecture: any architecture: any
+1 -1
View File
@@ -2,4 +2,4 @@ trigger_operations: ["install", "upgrade", "remove"]
target_type: "path" target_type: "path"
targets: ["boot/vmlinu*"] targets: ["boot/vmlinu*"]
depends: ["grub"] depends: ["grub"]
run: "grub-mkconfig -o /boot/grub/grub.cfg" run: "/usr/sbin/update-grub"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
grub-mkconfig -o /boot/grub/grub.cfg
+3
View File
@@ -56,6 +56,9 @@ package() {
# Install grub default file # Install grub default file
install -Dm644 "$BPM_WORKDIR"/grub.default "$BPM_OUTPUT"/etc/default/grub 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 BPM hook
install -Dm644 "$BPM_WORKDIR"/20-grub.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/20-grub.bpmhook install -Dm644 "$BPM_WORKDIR"/20-grub.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/20-grub.bpmhook