Bug#1027899: u-boot-menu: menu is not created by kernel-install command

2024-01-17 Thread Vagrant Cascadian
On 2023-01-04, Manuel Traut wrote:
> if kernel-install is called manualy the extlinux.conf file is not
> generated.
>
> This can be resolved with an .install file in /usr/lib/kernel/install.d

I uploaded a fix which calls u-boot-update from a hook in that
directory, but it does not support the newly added feature to sync DTB
files.

  # FIXME support U_BOOT_SYNC_DTBS on "add" and "remove" events

This almost makes me wonder if u-boot-update shouldn't take some
arguments so we do not have to duplicate the functionality across
/usr/lib/kernel/install.d/ and /etc/kernel/post*.d/ hooks.


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#1027899: u-boot-menu: menu is not created by kernel-install command

2023-01-04 Thread Manuel Traut
Package: u-boot-menu
Version: 4.1.0
Severity: normal
Tags: patch
X-Debbugs-Cc: manuel.tr...@mt.com

Dear Maintainer,

if kernel-install is called manualy the extlinux.conf file is not
generated.

This can be resolved with an .install file in /usr/lib/kernel/install.d

Regards
Manuel
>From 01a6363deaff470cf6623a2cd8df27dfe283d221 Mon Sep 17 00:00:00 2001
From: Manuel Traut 
Date: Tue, 22 Nov 2022 16:33:42 +0100
Subject: [PATCH] Add extlinux gen hook on kernel-install

Signed-off-by: Manuel Traut 
---
 debian/rules   | 3 +++
 debian/u-boot-menu.install | 1 +
 2 files changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 5cb246e..28dfa41 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,9 @@
 %:
dh $@
 
+override_dh_autoreconf:
+   cp -a zz-u-boot-menu 91-uboot.install
+
 override_dh_installinit:
cp -f default debian/u-boot-menu.u-boot.default
dh_installinit --name=u-boot
diff --git a/debian/u-boot-menu.install b/debian/u-boot-menu.install
index 1f801fe..72d229f 100644
--- a/debian/u-boot-menu.install
+++ b/debian/u-boot-menu.install
@@ -1,3 +1,4 @@
 u-boot-update   usr/sbin
 zz-u-boot-menu  etc/kernel/postinst.d
 zz-u-boot-menu  etc/kernel/postrm.d
+91-uboot.installusr/lib/kernel/install.d
-- 
2.39.0