Re: Inconsistency of bash behaviour on fedora aarch64 and x86_64 images

2022-09-27 Thread TommyLike Hu
It's a bug on docker runc component, I upgrade the runc version and everything works well now :) On Tue, Sep 6, 2022 at 10:07 PM TommyLike Hu wrote: > Thanks! Because I tried the folder that should be ok, but still got > unsuccessful, I submitted the bug here [1], but as you said maybe it's not

Re: Inconsistency of bash behaviour on fedora aarch64 and x86_64 images

2022-09-06 Thread TommyLike Hu
Thanks! Because I tried the folder that should be ok, but still got unsuccessful, I submitted the bug here [1], but as you said maybe it's not related to coreutil. https://bugzilla.redhat.com/show_bug.cgi?id=2124510 On Tue, Sep 6, 2022 at 9:59 PM Pavel Raiskup wrote: > On Tuesday, September 6,

Re: Inconsistency of bash behaviour on fedora aarch64 and x86_64 images

2022-09-06 Thread Pavel Raiskup
On Tuesday, September 6, 2022 1:38:56 PM CEST TommyLike Hu wrote: > I mean this command [1] below doesn't work well on the aarch64 container, > it's not related to the file/directory permissions at all. What makes you think so? What is the output from: $ stat "$directory" $ [ -w "$direct

Re: Inconsistency of bash behaviour on fedora aarch64 and x86_64 images

2022-09-06 Thread TommyLike Hu
I mean this command [1] below doesn't work well on the aarch64 container, it's not related to the file/directory permissions at all. ``` if [ -w $directory ] ; then echo 'Success!' ; fi ``` Maybe I should report an issue on related package [2] ? [1]: https://man7.org/linux/man-pages/man1/test.1.h

Re: Inconsistency of bash behaviour on fedora aarch64 and x86_64 images

2022-09-06 Thread Pavel Raiskup
On Tuesday, September 6, 2022 1:35:30 AM CEST TommyLike Hu wrote: > Sure, that would be easy to test this on an arm instance with script > something like this: > ``` > > if [ -w $directory ] ; then echo 'Success!' ; fi What path is held by the $directory / $REPODIR variables? Pavel P.S. double-

Re: Inconsistency of bash behaviour on fedora aarch64 and x86_64 images

2022-09-05 Thread TommyLike Hu
Sure, that would be easy to test this on an arm instance with script something like this: ``` if [ -w $directory ] ; then echo 'Success!' ; fi ``` On Tue, Sep 6, 2022 at 5:27 AM Jakub Kadlcik wrote: > Hello TommyLike, > a disclaimer first - I have never tried to run the Copr containers on > an

Re: Inconsistency of bash behaviour on fedora aarch64 and x86_64 images

2022-09-05 Thread Jakub Kadlcik
Hello TommyLike, a disclaimer first - I have never tried to run the Copr containers on an arm architecture, and I am not really a bash person. But if [ ! -w $REPODIR ] ; then Checks if a file (or I guess a directory) is writable. Are you sure you have the correct permissions for $REPODIR ? J