From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6576101197771440128 X-Received: by 2002:a1c:e902:: with SMTP id q2-v6mr49345wmc.5.1535407732958; Mon, 27 Aug 2018 15:08:52 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a7b:c056:: with SMTP id u22-v6ls71744wmc.2.gmail; Mon, 27 Aug 2018 15:08:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYXJrFiRP9wqlUG1DH8n3ULP0cxiGY+hNxCAuF1hwXb0MQJyvW4RpLdz+KqZG3xDzDIGtXy X-Received: by 2002:a1c:5d4c:: with SMTP id r73-v6mr48319wmb.26.1535407732468; Mon, 27 Aug 2018 15:08:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535407732; cv=none; d=google.com; s=arc-20160816; b=lrdAXItyRYBK1b2i1vrI8NHfoMgqZ3fkiRRKrxQRqMlGDgjvMJZUzOGToNqiJtADvd 6Qk8cH82dDwY4DCu3Sq/8sQytvQjj+U2mLvIvCTnB3vRFj5XnWWXKIHp447Pbri83SHV pPSbZ8bA+t71/4mfZvqP+TNijnATtdSlHfo/NiU7T9PkSBLpwQhVgyEFqEMym+23m5Gk ZmNyRLi4AZvcQodWPUmAklywWf3LkVxAMwu7a613io3IPi8ipRnc2vL6BHpGnk+aSEEt 52A6ai26fKWMAjOW6Tza1qW7EncnpMnxZdst8e2Rtdzf1tKoZeiqCjSxNwJT4pVrXyU8 t6+Q== 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:organization:from:references:to:subject :arc-authentication-results; bh=G5jbTNj55RAQNezFqeVbvA+zkunPQKz/rAAHOO4eyLY=; b=yMpPGBb5lQTUa/XFgH2fLqK/96qQmE0271EugVR15TJXnyW4101k6wyzddPHs9kY5J l+RZeION/UssG8GtfGSxVmA/eyPC4aAddYtrEyjqdWsDZZ8JklnPNTyKT/phu5pOQcWz 9LkMsrcLlDdmVpMpgYLTgmvUdLFJyjfi/OUYa9bjUuwtuNxXDFrXh37S/vFGZEZqRvPL hzX0ChymLCS4uHN88liyrG7FcveFOf0bz0yZ0RI3vQE3L595DMY/vaUT6SvSnbmu0gXn vCEeC92xj5ICx82JtmeK99l40HiGUTo62nEAsJp+sbgPLGHTuOfwOWpCuFIrlx0w5OfC xLrA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id y139-v6si12734wmc.3.2018.08.27.15.08.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 15:08:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.180] (nat-ppp-217.71.235.199-satnet-spb.ru [217.71.235.199] (may be forged)) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w7RM8njn015674 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 28 Aug 2018 00:08:51 +0200 Subject: Re: [PATCH v4] meta: Run depmod after kernel module installation To: Jan Kiszka , isar-users References: From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: <27b2eccc-2036-ca49-d2a2-f3b9c4df5dd1@ilbers.de> Date: Tue, 28 Aug 2018 01:08:44 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 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: PAJHQWjg9EhR On 08/19/2018 09:57 PM, Jan Kiszka wrote: > From: Jan Kiszka > > 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. Applied to the 'next', Regards, Maxim. > Signed-off-by: Jan Kiszka > --- > > Changes to v3: > - allow depmod to fail (e.g. when building the image) > > meta/recipes-kernel/linux-module/files/debian/postinst | 2 ++ > meta/recipes-kernel/linux-module/module.inc | 1 - > 2 files changed, 2 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..35d5de0 > --- /dev/null > +++ b/meta/recipes-kernel/linux-module/files/debian/postinst > @@ -0,0 +1,2 @@ > +#!/bin/sh > +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 > } > -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov