From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6596658663135379456 X-Received: by 2002:a1c:6705:: with SMTP id b5-v6mr458497wmc.31.1535904282824; Sun, 02 Sep 2018 09:04:42 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:ac16:: with SMTP id v22-v6ls4400457wrc.7.gmail; Sun, 02 Sep 2018 09:04:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYZnZrdQmuWfv80UgDyFFlWGIBYRN4WhV2A7/jRRWXWWrS+dsaF8NbDCJu2vXPBLvlUx4cR X-Received: by 2002:adf:f787:: with SMTP id q7-v6mr1990501wrp.5.1535904282365; Sun, 02 Sep 2018 09:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535904282; cv=none; d=google.com; s=arc-20160816; b=Pxbk51LDk6kFMi0tE8tSdTGN9UYV0/clXDhGNu+t35ueYPT19C58mgB3FDcXqGV0IS Q5iuXm0uSfofhMB9DuFG9CgaLtfHKIs+NYMNa1Y89+Jsbnrbmu84ztkH4Z4QhAFlZKGa X9YIahf9Op6x1lELRfU5Eqr0ZcTsdKqLr2fMQnY+/OHoPem94yjqf8bNrbo5cONzpBN3 WOqgoUgTa2FLtuARCGKymiycSny41/Pd7yTFBKgsfAextkqOLIJcZ/66i5hvi/pmMO7b tmqBz3NxtDjmotcJ82vK/dTrxuftZokSa8N0z4yx1cvIjr+aw0L7CMNoEDZDqmf3H8qU sg7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:references:in-reply-to:message-id:date :subject:to:from:arc-authentication-results; bh=Mf8K1KmrLmCkdZFuGytW63M5HKO9v6BVuu+PGbvdsjU=; b=SkD5bXiJzgfvFD7TgNXXr5soY+fo3R2hy703hVM7m9SeMEruI+xB5yMScql7BtCK7y WL9AOCSh9UhLUgpVulDktUGyP8nqT5+zYWt9I5TyNQ9url0/n/vvNe8AUuLPOsRn2PKD g4JPMVASwbuiFsC997MtRI2Vsrog+XkBTLJcHLM55pT1UX+vRov8++vIgN71g3Gp/C8s 6y4KGI4t9hY6m57Q/h5wy319KstjvOaR9ODQtGthC2l1j/cWkeME515XgZbjBA7eT0oG 7zKXJAIiNdJorOy2A/hHBwNIkpvxMqlxGoMVwSq0qkyw2HFdYw3+Y+c+4y/MVs+nISqk UD4g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id z14-v6si425034wrh.4.2018.09.02.09.04.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Sep 2018 09:04:42 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w82G4fuA030196 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 2 Sep 2018 18:04:41 +0200 Received: from md1f2u6c.ad001.siemens.net ([139.22.32.125]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w82G4fqo004352 for ; Sun, 2 Sep 2018 18:04:41 +0200 From: Jan Kiszka To: isar-users Subject: [PATCH 2/6] linux-module: Run depmod for installed kernel versions Date: Sun, 2 Sep 2018 18:04:36 +0200 Message-Id: <67a59719ea630a5f21cf10228b77af3500b650de.1535904280.git.jan.kiszka@siemens.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: References: In-Reply-To: References: X-TUID: Lx3PnQPMam9K From: Jan Kiszka The return code of the postinst script it the one of the last executed instruction. Unfortunately, depmod tend to fail when run on the host during rootfs generation because host kernel and target kernel usually differ. To overcome this, pick up the kernel version(s) by looking at the content of /lib/modules. Signed-off-by: Jan Kiszka --- meta/recipes-kernel/linux-module/files/debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux-module/files/debian/postinst b/meta/recipes-kernel/linux-module/files/debian/postinst index 35d5de0..ed9d312 100755 --- a/meta/recipes-kernel/linux-module/files/debian/postinst +++ b/meta/recipes-kernel/linux-module/files/debian/postinst @@ -1,2 +1,2 @@ #!/bin/sh -depmod -a +depmod -a $(ls /lib/modules) -- 2.16.4