From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2198AC4743C for ; Mon, 21 Jun 2021 18:52:33 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A01346115A for ; Mon, 21 Jun 2021 18:52:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A01346115A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 22B9E829B5; Mon, 21 Jun 2021 20:52:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LqGNJ+Od"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DC9FC829B9; Mon, 21 Jun 2021 20:52:17 +0200 (CEST) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BE4F2828EB for ; Mon, 21 Jun 2021 20:52:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ej1-x62d.google.com with SMTP id nb6so30374937ejc.10 for ; Mon, 21 Jun 2021 11:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yAgSheOm1tND1yopX+SDQvzx5ajeKTqlfcYNqQVVW1c=; b=LqGNJ+OdYclQOxNWRXaKnka000240hKe20A+uw7jWD70cTd2z0MrEV2ZNoK/zm4I5Z 19stufnjfrFPIXnhuOloHogMWFYMvVSxT+A9SkNSCXKDyWpzaZw21yRgFD6sYDrbAUSD g3upgsD/zSHBVHxQH/vfOPiTaC2rO+ZX69F0AvA1W5OO0vOn/4TkEi25ApneXCvs0SWX IBtfYISbwBCrgyxn8TTm7ccSiwJQ76OxiX/9dZTEyxtOQi++d0049fqGRWpN6xHvbb39 u8BVkZexj4t92htvFhDUYFaUtT3WNEQiNcKN2VLeqxv2GBil4wgT1bjvvKmdb3reEA++ SiFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yAgSheOm1tND1yopX+SDQvzx5ajeKTqlfcYNqQVVW1c=; b=SGssQXG8wfwQiWFhejYYCeEiEtLpwMuPkLRV+9yUCp4kvbC8d8PPvmPHA31Y8jjbtp AZULAvvoKM2IU3yX0+zDzAU5gkllCRYphM3D24hVgBOds2l7rurTWe/K8qqV9TGSJ2SG /Yx8L0pLYw9zL/IcBU5UQW0NP39UJwgHoTY/37c3BNqdCe2E3QPkAfdsGk5LZETDJhsZ mnA2vbzjotfQ+l3+Ku4RMcgaM34nCw1cpdDKKmmt0rh6/kdRpmmzjMRT9DeCAJwuL+Kw wCRG67KVqM/qlfkH8pjCQddwpSjOD8ZeT8ah8rxuPh0lSoLR/+QzSXa6Y4LUqWXhE42u bPyA== X-Gm-Message-State: AOAM531X2rmdfA4Hvve6KZ2A1WFsr2Goztj7K5lrgJL3qu+cItZ6BxF1 d2j1E3Ay/tZ+C1v1OwpA3oV1ApnGids= X-Google-Smtp-Source: ABdhPJxgLKu7EGNkESQxN80PwvvldJ3UYhYzSia6UDhtIDOnE6najZqZvH4kAC/z8akjErzvu4zaxw== X-Received: by 2002:a17:907:1c13:: with SMTP id nc19mr4330462ejc.204.1624301533239; Mon, 21 Jun 2021 11:52:13 -0700 (PDT) Received: from localhost.localdomain ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id n11sm5205690ejg.43.2021.06.21.11.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 11:52:13 -0700 (PDT) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: Daniel Schwierzeck , Simon Glass , Bin Meng , AKASHI Takahiro , Heinrich Schuchardt , Marek Vasut , Tom Rini , Alper Nebi Yasak Subject: [PATCH v3 1/3] tools: docker: Install a readable kernel for libguestfs-tools Date: Mon, 21 Jun 2021 21:51:54 +0300 Message-Id: <20210621185156.9108-2-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621185156.9108-1-alpernebiyasak@gmail.com> References: <20210621185156.9108-1-alpernebiyasak@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean The filesystem and EFI (capsule and secure boot) test setups try to use guestmount and virt-make-fs respectively to prepare disk images to run tests on. However, these libguestfs tools need a kernel image and fail with the following message (revealed in debug/trace mode) if it can't find one: supermin: failed to find a suitable kernel (host_cpu=x86_64). I looked for kernels in /boot and modules in /lib/modules. If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). This failure then causes these tests to be skipped in CIs. Install a kernel package in the Docker containers so the CIs can run these tests with libguestfs tools again (assuming the container is run with necessary host devices and privileges). As this kernel would be only used for virtualization, we can use the kernel package specialized for that. On Ubuntu systems kernel images are not readable by non-root users, so explicitly add read permissions with chmod as well. Signed-off-by: Alper Nebi Yasak Acked-by: Heinrich Schuchardt --- Changes in v3: - Only set /boot/vmlinu* as readable. Changes in v2: - Add tag "Acked-by: Heinrich Schuchardt " tools/docker/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index d2f0074ee8a6..579df82b56e7 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -71,6 +71,7 @@ RUN apt-get update && apt-get install -y \ libssl-dev \ libudev-dev \ libusb-1.0-0-dev \ + linux-image-kvm \ lzma-alone \ lzop \ mount \ @@ -99,6 +100,9 @@ RUN apt-get update && apt-get install -y \ zip \ && rm -rf /var/lib/apt/lists/* +# Make kernels readable for libguestfs tools to work correctly +RUN chmod +r /boot/vmlinu* + # Manually install libmpfr4 for the toolchains RUN wget http://mirrors.kernel.org/ubuntu/pool/main/m/mpfr4/libmpfr4_3.1.4-1_amd64.deb && dpkg -i libmpfr4_3.1.4-1_amd64.deb && rm libmpfr4_3.1.4-1_amd64.deb -- 2.32.0