From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7143957839444180992 X-Received: by 2002:a05:6808:e88:b0:34b:8cf0:5a75 with SMTP id k8-20020a0568080e8800b0034b8cf05a75mr7296661oil.276.1663578528554; Mon, 19 Sep 2022 02:08:48 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6870:d244:b0:11e:7a1d:b272 with SMTP id h4-20020a056870d24400b0011e7a1db272ls2203872oac.7.-pod-prod-gmail; Mon, 19 Sep 2022 02:08:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6/eekLtvvxp7HRYUU1FTWgkWBWY+Yr8bOMm+glK4j2FeSRmiRpCcMStNvLFu//A5GLWjCo X-Received: by 2002:a05:6870:8917:b0:127:8962:ccb6 with SMTP id i23-20020a056870891700b001278962ccb6mr9445658oao.221.1663578527925; Mon, 19 Sep 2022 02:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663578527; cv=none; d=google.com; s=arc-20160816; b=kyCdWNbm5d+BNRPITZb02OIu4eURPuahzV+T0BTRNckPwiZDOLWs+VB4jJFrBj6ETW Hz+Io4IHC+UNBlbddGOA4lh4NWQJx4n70vDWt8eyd4YQJFD/QFs29kx/7UKCj9tIzY5o lbWJPKF5VWCAW1ItkxycqWL14XuUjWstP0RoUDLyR45k+L3YZ2eM6vL2utSXvdequKQv pQiqy5vX8MVhtiIXl/v90InwHixODYNPX+sfY46w7D/Qqwr4zLBRHBRajgUzrdsjS7z8 ynW9xeXQ9iqkGqOfGO3ri55XM00/XCLOIGE1o93g02ryH8ZwhY+vstxmOugq6VEDRYCC ul6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=AMLrkp7/Nmsfmwoi6eKt3EMuJtnkL1jQlRrropJ3CAE=; b=Sfw+fbxVUK1nCJ7gzs/12qRiC9+Si7Nc7jnwQE7AwI4ZO5CbiU1+xNIy/NTsQXmfdP N70D7uVJRFxktCRI+tF41DFvAI4R2/PXBnfjdNJkEajn/bTnmwezEfSJcu74c5uBkLRZ ZaGj3YpuypswFMo1Cor0vRX7jCGpSKuhCNPyaGGyEoOT7r5w9YC2Vd8yLOKwly/ooC1c 4cCUPEWKqcpjrZ4bLtGvANi4S4E6wlzEI9WorcJROi4lJnL5l7Kz2/fyrDVW33+qFJBA ipYxEhTvU2nwe7N+jIKdyUClVs/+D6cIiwzpwxCiA11J91zgRW2/p5KjRJslk7hX8eD5 GhNw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=duvaZSnI; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d31 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com. [2607:f8b0:4864:20::d31]) by gmr-mx.google.com with ESMTPS id h4-20020a056870170400b0010c5005e1c8si1948585oae.3.2022.09.19.02.08.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Sep 2022 02:08:47 -0700 (PDT) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d31 as permitted sender) client-ip=2607:f8b0:4864:20::d31; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=duvaZSnI; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d31 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-io1-xd31.google.com with SMTP id e205so18306065iof.1 for ; Mon, 19 Sep 2022 02:08:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=AMLrkp7/Nmsfmwoi6eKt3EMuJtnkL1jQlRrropJ3CAE=; b=duvaZSnIgmN/k2VdK2NLXcPZhLd8WnmCB1MJzqotXlWwmiElX2lkuLEUcmESOh3JnJ aCmRZQ6xSzr+xNze94OMqRlt/NGWy2EQN33p2q6kScL1ujCaPMWkfyBT7In7MAJVsg6Y 2e9KZtY3A0azZkpDQe2b7KteUyfYk2zulOLJuWEaWVmNM9IdD/agE4QvfTIwPZlieG5H ASqu7IsNmAoO00WFowicA75cvBWbdfjQ1XDkk4OyOp7KWyD/gz4Bfg2Dnhy3CXM1hly9 3RqitucXZSn9uFYH7PFR0XDHBKJ9vfQUmRdquynmiPI7jYkwaPbakOVG1vgkAYOUwd/u rEaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=AMLrkp7/Nmsfmwoi6eKt3EMuJtnkL1jQlRrropJ3CAE=; b=fklNGDcQsEOzOlPqwNHI4yC4ptI77+fBd2OhMAEHmIdgEm/xGSyZHFeWHtAxsRLp7S sPFALsKswokP5rNK6JDi/7j+FRViunkBxX5r47Pf/Bh8Gc83YQAZ9gciSL9K/0iDV4OB uE/sd+NoC14wiToR4scoDpAL4ZDTyb0quujImMyDWV08SLzdji6byJWXmab54iBbNEMf AlGxICmPZPlQhVI7d5S6OQ8PpNRFtRQHIPP5qQoxDNH5uOM7kAgNDIfOTJbIGWYSKhp5 WBik3vog0VioEBijUhJ219kanUYw5u1irmt7EC/9K0AZFQELbllMHILV27tXU8q6ny1c gW7Q== X-Gm-Message-State: ACrzQf1/MIMXfpJ3zmuvJ4TTxuLlu/842tboNZvrjSmu3mwD8nyzkyCy zIQICwUSvLDSHHantZLP7ojGxPg7pnUWR0iaP6YwKQM= X-Received: by 2002:a05:6638:1924:b0:35a:411a:b058 with SMTP id p36-20020a056638192400b0035a411ab058mr8015922jal.296.1663578527583; Mon, 19 Sep 2022 02:08:47 -0700 (PDT) MIME-Version: 1.0 References: <20220919093104.41eb5568@md1za8fc.ad001.siemens.net> In-Reply-To: <20220919093104.41eb5568@md1za8fc.ad001.siemens.net> From: "Roberto A. Foglietta" Date: Mon, 19 Sep 2022 11:08:36 +0200 Message-ID: Subject: Re: [patch 1/1] linux module postinst generalisation To: Henning Schild Cc: isar-users@googlegroups.com Content-Type: multipart/alternative; boundary="0000000000003151ae05e9040f87" X-TUID: 01OZfb/YiqSQ --0000000000003151ae05e9040f87 Content-Type: text/plain; charset="UTF-8" Il Lun 19 Set 2022, 09:31 Henning Schild ha scritto: > Hey Roberto, > > [...] > And an interator over multiple directories would maybe also fail once > it finds the one "broken" directory. > One iteration might fail but nicely because others succeed. Yes, in theory should not be found any invalid entry in that folder but integraring 3rd party proprietary packages, it could happen and it is much easier to generalise the approach rather than fix that packages. Moreover, why not something like depmod -a ${KERNEL_VERSION} After all, the opposite of a generalisation is a specific call that cannot fails. I hope this helps, R- --0000000000003151ae05e9040f87 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Il Lun 19 Set 2022, 09:31 Henning Schild <henning.schild@siemens.com> ha scritto:=
Hey Roberto,

[...]

And an interator over multiple directories would maybe also fail once
it finds the one "broken" directory.
=

One iteration might fail but = nicely because others succeed. Yes, in theory should not be found any inval= id entry in that folder but integraring 3rd party proprietary packages, it = could happen and it is much easier to generalise the approach rather than f= ix that packages.

Moreov= er, why not something like

depmod -a ${KERNEL_VERSION}

After all, the opposite of a generalisation is a specific call that = cannot fails.

I hope thi= s helps, R-


--0000000000003151ae05e9040f87--