From: Alper Nebi Yasak <alpernebiyasak@gmail.com>
To: Heinrich Schuchardt <xypron.glpk@gmx.de>, u-boot@lists.denx.de
Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>,
Bin Meng <bmeng.cn@gmail.com>, Tom Rini <trini@konsulko.com>,
Simon Glass <sjg@chromium.org>,
Daniel Schwierzeck <daniel.schwierzeck@gmail.com>,
Marek Vasut <marek.vasut@gmail.com>
Subject: Re: [PATCH v2 1/3] tools: docker: Install a readable kernel for libguestfs-tools
Date: Mon, 21 Jun 2021 21:12:12 +0300 [thread overview]
Message-ID: <0354f009-4bfa-9f17-0835-edf28a6bb9ce@gmail.com> (raw)
In-Reply-To: <c94668d1-fb18-1ace-1779-974c19b69e88@gmx.de>
On 14/06/2021 20:29, Heinrich Schuchardt wrote:
> On 6/13/21 4:07 PM, Alper Nebi Yasak wrote:
>>
>> supermin: failed to find a suitable kernel (host_cpu=x86_64).
>>
>> I looked for kernels in /boot and modules in /lib/modules.
>>
>> [...]
>>
>> diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
>> index d2f0074ee8a6..563b16639e54 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* /lib/modules/*/vmlinu* || true
>
> /lib/modules/4.15.0-1092-kvm# find . -name 'vm*'
> does not find any file.
>
> We don't need '|| true' if you do not refer to non-existent files.
I included both dirs as libguestfs checks both of them. If that doesn't
convince you, I can send a v3 with just `chmod +r /boot/vmlinu*`.
I actually misread the error message above as mentioning both dirs for
kernel so I didn't explicitly write it in the commit message, but the
source code [1] confirms that both are checked.
[1]
https://github.com/libguestfs/supermin/blob/master/src/format_ext2_kernel.ml#L28-L49
(sorry for the late reply)
next prev parent reply other threads:[~2021-06-21 18:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-13 14:07 [PATCH v2 0/3] Fix CIs skipping filesystem, EFI secure boot and EFI capsule tests Alper Nebi Yasak
2021-06-13 14:07 ` [PATCH v2 1/3] tools: docker: Install a readable kernel for libguestfs-tools Alper Nebi Yasak
2021-06-14 17:29 ` Heinrich Schuchardt
2021-06-21 18:12 ` Alper Nebi Yasak [this message]
2021-06-21 18:35 ` Heinrich Schuchardt
2021-06-13 14:07 ` [PATCH v2 2/3] Azure: Add fuse device for test.py tests Alper Nebi Yasak
2021-06-13 14:07 ` [PATCH v2 3/3] Azure: Add loop devices and CAP_SYS_ADMIN for sandbox " Alper Nebi Yasak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0354f009-4bfa-9f17-0835-edf28a6bb9ce@gmail.com \
--to=alpernebiyasak@gmail.com \
--cc=bmeng.cn@gmail.com \
--cc=daniel.schwierzeck@gmail.com \
--cc=marek.vasut@gmail.com \
--cc=sjg@chromium.org \
--cc=takahiro.akashi@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.