From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6576101197771440128 X-Received: by 2002:adf:d4ca:: with SMTP id w10-v6mr3540641wrk.32.1534663423158; Sun, 19 Aug 2018 00:23:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:4d05:: with SMTP id o5-v6ls2733429wmh.12.gmail; Sun, 19 Aug 2018 00:23:42 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyRcvY/TsonG8IaEe9XO761kR9fZVdqyQYn1o4BBDZVFWqGaCAOucK0IEUH6lEyraj93tju X-Received: by 2002:a1c:f60a:: with SMTP id w10-v6mr3543092wmc.19.1534663422651; Sun, 19 Aug 2018 00:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534663422; cv=none; d=google.com; s=arc-20160816; b=xF7jOrdBo4VqG7UUGWkUElabRLE4ib+74b82Yd4duyrqZtbScj+HIMaIGfE0Vkh9yz KoNY8HLbvGTVTk0prdtdWHQnAgHlOkto+OTPk4PedlRdKnnY2FbawSz/6FvYfGHuTDAy U5c/y8/m6/f/Pi63hRz2yeU/+1q8UIPvJdfNYxV6CHeOeNEzb1c7zBmKOirfDDGsVbME eXMM1/yv7WB7uGIVHQaEhaLQvtyKG9oK1u8pdO+SrRoHKp6e1XIHytU5NH+wRVHV/dc6 Rhai7IxWqWAoCk2fbvMIzkYj9e2fo5AzW7jyvygqJlkdvdDAffd2dczADl3UAg6QT+0K S36A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:from:subject :arc-authentication-results; bh=7BkH61mAafpmpVawScws3xvY0imTSK4U27BBW1A+J54=; b=Mzh00U6Qgb0g0T8BwUV0PwnY8raUiy7xlo71YqmAOcqAvYACFJ8OLPh+T9VImP5pxr ad1DQHRpzNHDbmZLFV898vpTZr/WOqIXA0mv0dOJQDgP55SwWEhwWWcG2pGndZzpQcTR o5d9Vd4UN0CsVENbyV1ScOCN2WNybMX2FCnuaZP3PlrvfJBb+cgB3cvepR77v1FNaDH5 kNg0vGqzucQCaY8Qo1n6hxHRWaVYC9IeI5T8uWXlad0UsM1f1OMZ8I/Nd5351SWTIZKz eMIieDOMPRYE6YiCqfIUYD6RD+alLq92NynP3mY79SJmaPNwszsV/ARZXkbGrZAzVXHL hOMg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id j6-v6si281143wmh.2.2018.08.19.00.23.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Aug 2018 00:23:42 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id w7J7Ng65025139 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 19 Aug 2018 09:23:42 +0200 Received: from [139.22.32.249] ([139.22.32.249]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id w7J7NftW021585; Sun, 19 Aug 2018 09:23:41 +0200 Subject: Re: [PATCH v3] meta: Run depmod after kernel module installation From: Jan Kiszka To: isar-users , Maksim Osipov References: Message-ID: <9eb9c94c-e048-68f1-5662-fcb233ef7ff5@siemens.com> Date: Sun, 19 Aug 2018 09:23:41 +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 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: XwH8+VUFYd9i On 2018-07-09 11:50, [ext] Jan Kiszka wrote: > 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 > } > Ping. Seems this fell through the cracks. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux