Adding dinit service and pacman hook for kernel update

This commit is contained in:
2026-09-05 14:58:14 +02:00
parent 8865fde77c
commit 605faa3c19
3 changed files with 22 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
[Trigger]
Operation = Upgrade
Operation = Install
Type = Package
Target = linux-kira-lts
Target = linux-kira-virt-lts
Target = linux-kira-server-lts
[Action]
Description = Running custom command after kernel update
When = PostTransaction
Exec = /usr/bin/hive-up cli --update-boot
+6
View File
@@ -0,0 +1,6 @@
type = process
command = /usr/bin/hive-up daemon
stop-command = /usr/bin/hive-up cli --upgrade
depends-on = network.target
logfile = /var/log/dinit/hive-up.log
log-type = file
+4 -4
View File
@@ -25,14 +25,14 @@ use time_format;
const SNAPS_DIR: &str = "/bzz-snaps";
const EFI_BOOT_MOUNT_POINT: &str = "/beefi";
const UKI_IMAGE_NAME: &str = "/beefi/EFI/kira-linux-lts.efi";
const UKI_IMAGE_BACK_NAME: &str = "/beefi/EFI/kira-linux-lts-back.efi";
const UKI_IMAGE_NAME: &str = "/beefi/EFI/linux-kira-lts.efi";
const UKI_IMAGE_BACK_NAME: &str = "/beefi/EFI/linux-kira-lts-back.efi";
const EFI_PARTLABEL: &str = "bee-efi";
const BOOT_MENU_LABEL: &str = "Kira OS";
const BOOT_MENU_LABEL_BACK: &str = "Kira OS Fallback";
const BOOT_UKI_IMAGE_NAME: &str = "\\EFI\\kira-linux-lts.efi";
const BOOT_UKI_IMAGE_NAME_BACK: &str = "\\EFI\\kira-linux-lts-back.efi";
const BOOT_UKI_IMAGE_NAME: &str = "\\EFI\\linux-kira-lts.efi";
const BOOT_UKI_IMAGE_NAME_BACK: &str = "\\EFI\\linux-kira-lts-back.efi";
#[derive(Debug)]
pub struct CommandFailed {