From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6576101197771440128 X-Received: by 2002:aa7:d806:: with SMTP id v6-v6mr5943547edq.3.1531129808475; Mon, 09 Jul 2018 02:50:08 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:c247:: with SMTP id y7-v6ls5241643edo.2.gmail; Mon, 09 Jul 2018 02:50:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeRGJ6XzKm+2hT1LsX70bwLDOWG7xa3qzFzdVWTZFwRPHBLT/SIvlqY0dbLo8Hqhsd5xt0l X-Received: by 2002:aa7:d9cb:: with SMTP id v11-v6mr5946616eds.2.1531129807948; Mon, 09 Jul 2018 02:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531129807; cv=none; d=google.com; s=arc-20160816; b=Z8BXzkbzwdLJ/tLon79fw6PxuiYZQrJ4tIH8RFNvilRNwl6TGrORTrTOmGkMGz2qaK JAY/dfBycv/+007Ba9cbBQ4pzdJ3YFizDDy85dzl8GIS6PSJNC5TZynw1zIFIDmtZsm5 AdLzuYfkw5sv45q8mJBPaSzohxazoJxMxvFbWv/3/hKcLfalcDWcsRpaGvw/RWjYOFiB r31Er2hph4NkSVhRSykOhzbDyDzL5VuD0L5GNjyV7qtwauo2RvyO3rMKKb5XR6ivM3Ti k5BSUAcA3h7O5RLzO/dGI94kUv1J0CwTjHjcK+kTQk2Tw0k95Fx/jJTgUf1RdOvsI2VO 9WZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version:user-agent :date:message-id:subject:from:to:arc-authentication-results; bh=9Bmq8hIZh78AgIykO4h9RE7wtsATo94dtxTbi3mxvmE=; b=Fv2kgxpowYG625AblnKOKR1wAe4Bqm8H/ME8XZ17Sd1GJIeMQ1RoqhJNK0HFQDc313 UBiqYTv2LvCPHhEZsP+42ny4n8jTvrw2hZdVePphJN+lDxXRlOKU1AYloXPPlgr/1gJ2 nXQZN1W5g11V1ufA8tH5FA1JP5u+TxWxiKSpelsWsFm2rlbB0a0PCkKOqTK9O5fn/kmz oToVw2zRQwGy2yyzegU2lxr6Hi9kJAhv/nKgYeH3/qeDqdwWbBvHJFMncQHxKu+F4bpp czPn/hUYiFVW+XO5k0ljsfPGnEy6ugVW38NGSwWUIyqLJAok8Hq6z/I/FljNKqM3jkL8 mc3w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id r20-v6si60532edm.2.2018.07.09.02.50.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 02:50:07 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id w699o7eT031421 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 9 Jul 2018 11:50:07 +0200 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w699o7Yr009955 for ; Mon, 9 Jul 2018 11:50:07 +0200 To: isar-users From: Jan Kiszka Subject: [PATCH v3] meta: Run depmod after kernel module installation Message-ID: Date: Mon, 9 Jul 2018 11:50:06 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 6zXAL8KpdyRc 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 --- 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