public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v3] meta: Run depmod after kernel module installation
@ 2018-07-09  9:50 Jan Kiszka
  2018-08-19  7:23 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2018-07-09  9:50 UTC (permalink / raw)
  To: isar-users

Otherwise the module may not be found if the module package is installed
on its own, i.e. without the kernel package performing the depmod run.

As we now install a postinst baseline with the right mode, the chmod on
AUTOLOAD becomes obsolete.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

Changes in v3:
 - remove now obsolete chmod on AUTOLOAD

 meta/recipes-kernel/linux-module/files/debian/postinst | 4 ++++
 meta/recipes-kernel/linux-module/module.inc            | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100755 meta/recipes-kernel/linux-module/files/debian/postinst

diff --git a/meta/recipes-kernel/linux-module/files/debian/postinst b/meta/recipes-kernel/linux-module/files/debian/postinst
new file mode 100755
index 0000000..baabf5d
--- /dev/null
+++ b/meta/recipes-kernel/linux-module/files/debian/postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+depmod -a
diff --git a/meta/recipes-kernel/linux-module/module.inc b/meta/recipes-kernel/linux-module/module.inc
index 3075f44..76a49f3 100644
--- a/meta/recipes-kernel/linux-module/module.inc
+++ b/meta/recipes-kernel/linux-module/module.inc
@@ -26,6 +26,5 @@ dpkg_runbuild_prepend() {
 
     if [ ${AUTOLOAD} = "1" ]; then
         echo "echo ${PN} >> /etc/modules" >> ${S}/debian/postinst
-        chmod +x ${S}/debian/postinst
     fi
 }
-- 
2.16.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-19 10:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-09  9:50 [PATCH v3] meta: Run depmod after kernel module installation Jan Kiszka
2018-08-19  7:23 ` Jan Kiszka
2018-08-19 10:17   ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox