From: Chuck Lever <chuck.lever@oracle.com>
To: Daniel Gomez <da.gomez@kernel.org>
Cc: Luis Chamberlain <mcgrof@kernel.org>,
Daniel Gomez <da.gomez@samsung.com>,
Joel Granados <joel.granados@kernel.org>,
kdevops@lists.linux.dev
Subject: Re: [PATCH v2] bringup: Use full path when creating custom_source file
Date: Sat, 8 Feb 2025 15:58:28 -0500 [thread overview]
Message-ID: <8065e515-9258-4ed4-a224-e30e0195c483@oracle.com> (raw)
In-Reply-To: <tmzowkdve2fv6htozxrob3mwhrtextby3hmerhquikbww5qob6@dkydbkknsnhk>
On 2/8/25 2:31 PM, Daniel Gomez wrote:
> On Sat, Feb 08, 2025 at 10:55:12AM +0100, Chuck Lever wrote:
>> On 2/8/25 7:24 AM, Daniel Gomez wrote:
>>> On Wed, Feb 05, 2025 at 11:18:54AM +0100, Daniel Gomez wrote:
>>>> On Wed, Feb 05, 2025 at 09:50:51AM +0100, Joel Granados wrote:
>>>>> Avoid "file not found" failures related to relative paths in
>>>>> custom_source
>>>>>
>>>>> Signed-off-by: Joel Granados <joel.granados@kernel.org>
>>>>
>>>> Looks good. Thanks for checking!
>>>>
>>>> Reviewed-by: Daniel Gomez <da.gomez@samsung.com>
>>>
>>> Applied, thanks!
>>>
>>>
>>>>
>>>>> ---
>>>>> After discussion in the list there is only one patch remaining. I have
>>>>> dropped the ones that were "shot down" and kept the one that makes sure
>>>>> we use full paths instead of relative; which seems to be a good idea.
>>>>>
>>>>> Changes in v2:
>>>>> - Only one patch remains : "[PATCH RESEND 10/12] bringup: Use full path
>>>>> when creating custom_source file", because some have already gone into
>>>>> mainline and some other were "shot down"
>>>>> - Link to v1: https://lore.kernel.org/r/20241218-jag-bringup_fixes-v1-0-0bf2e07c640c@kernel.org
>>>>> ---
>>>>>
>>>>> ---
>>>>> scripts/bringup_guestfs.sh | 2 +-
>>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>>
>>>>> diff --git a/scripts/bringup_guestfs.sh b/scripts/bringup_guestfs.sh
>>>>> index 74eecea..2c41999 100755
>>>>> --- a/scripts/bringup_guestfs.sh
>>>>> +++ b/scripts/bringup_guestfs.sh
>>>>> @@ -110,7 +110,7 @@ build_custom_image()
>>>>> CUSTOM_IMAGE="${CUSTOM_IMAGE_DIR}/${OS_VERSION}.raw"
>>>>> CUSTOM_IMAGE_OK="${CUSTOM_IMAGE_DIR}.ok"
>>>>> CUSTOM_SOURCE="/etc/virt-builder/repos.d/kdevops-custom-images-${OS_VERSION}.conf"
>>>>> - CUSTOM_INDEX="${CUSTOM_IMAGE_DIR}/index"
>>>>> + CUSTOM_INDEX="$(realpath ${CUSTOM_IMAGE_DIR}/index)"
>>
>> My understanding is that 'realpath' is not available on every
>> distribution...? Daniel, Luis, if this usage is OK, I'd like to use
>> 'realpath' in one or two other spots.
>
> realpath is included coreutils, and it seems to be available on all supported
> host distros. My quick check:
>
> + podman run --rm -it debian:latest bash -c 'dpkg -L coreutils | grep realpath'
> /usr/bin/realpath
> /usr/share/man/man1/realpath.1.gz
> + podman run --rm -it fedora:latest bash -c 'rpm -ql coreutils | grep realpath'
> /usr/bin/realpath
> + podman run --rm -it opensuse/tumbleweed bash -c 'rpm -ql coreutils | grep realpath'
> /usr/bin/realpath
> + podman run --rm -it ubuntu:latest bash -c 'dpkg -L coreutils | grep realpath'
> /usr/bin/realpath
> /usr/share/man/man1/realpath.1.gz
>
> I'm curious, which distros are not shipping realpath?
While looking at basename/dirname last week, I found articles such as
this one:
https://superuser.com/questions/771104/usr-bin-realpath-not-found-in-centos-6-5
But I see that the submission date on that article is a decade ago.
If we believe realpath is available on every recent distro we care to
run kdevops on, then there is no good reason to avoid using it.
>>>>> mkdir -p ${CUSTOM_IMAGE_DIR}
>>>>>
>>>>>
>>>>> ---
>>>>> base-commit: 4bffd17ac6a3ac757a26897a75ffa185d623a8e4
>>>>> change-id: 20241217-jag-bringup_fixes-24ef1bc4211a
>>>>>
>>>>> Best regards,
>>>>> --
>>>>> Joel Granados <joel.granados@kernel.org>
>>>>>
>>>>>
>>>
>>
>>
>> --
>> Chuck Lever
--
Chuck Lever
next prev parent reply other threads:[~2025-02-08 20:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20250205085118eucas1p2c907360953c612610febd292cce38164@eucas1p2.samsung.com>
2025-02-05 8:50 ` [PATCH v2] bringup: Use full path when creating custom_source file Joel Granados
2025-02-05 10:18 ` Daniel Gomez
2025-02-08 12:24 ` Daniel Gomez
2025-02-08 15:55 ` Chuck Lever
2025-02-08 19:31 ` Daniel Gomez
2025-02-08 20:58 ` Chuck Lever [this message]
2025-02-10 20:51 ` Daniel Gomez
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=8065e515-9258-4ed4-a224-e30e0195c483@oracle.com \
--to=chuck.lever@oracle.com \
--cc=da.gomez@kernel.org \
--cc=da.gomez@samsung.com \
--cc=joel.granados@kernel.org \
--cc=kdevops@lists.linux.dev \
--cc=mcgrof@kernel.org \
/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.