Re: Inconsistency of bash behaviour on fedora aarch64 and x86_64 images
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 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 ? > > Jakub > > On Mon, Sep 5, 2022 at 4:59 PM TommyLike Hu wrote: > > > > Hey COPR Developers, > > Recently, I am trying to deploy COPR containers on an arm instance, > except for the base image and resalloc pool tag issues, I also found there > is a strange thing on bash command, check this code from dist-git [1] below: > > ``` > > if [ ! -w $REPODIR ] ; then > > echo "ERROR: You can not write to $REPODIR" > > echo "ERROR: You can not create repos" > > exit -1 > > fi > > ``` > > This would always fail in an aarch64 container which uses the identical > dockerfile as the x86 ones. > > ``` > > > > FROM registry.fedoraproject.org/fedora:35 > > MAINTAINER copr-devel@lists.fedorahosted.org > > > > ``` > > Could this be a fedora issue? Considering I tried fedora 35/36/37 which > all failed. > > > > > > [1]: > https://github.com/release-engineering/dist-git/blob/738dc51b8dff6f06a3d4be5f0f480aebf36b1480/scripts/dist-git/setup_git_package#L72 > > > > ___ > > copr-devel mailing list -- copr-devel@lists.fedorahosted.org > > To unsubscribe send an email to copr-devel-le...@lists.fedorahosted.org > > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > > List Archives: > https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org > > Do not reply to spam, report it: > https://pagure.io/fedora-infrastructure/new_issue > ___ > copr-devel mailing list -- copr-devel@lists.fedorahosted.org > To unsubscribe send an email to copr-devel-le...@lists.fedorahosted.org > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org > Do not reply to spam, report it: > https://pagure.io/fedora-infrastructure/new_issue > ___ copr-devel mailing list -- copr-devel@lists.fedorahosted.org To unsubscribe send an email to copr-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: Inconsistency of bash behaviour on fedora aarch64 and x86_64 images
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 ? Jakub On Mon, Sep 5, 2022 at 4:59 PM TommyLike Hu wrote: > > Hey COPR Developers, > Recently, I am trying to deploy COPR containers on an arm instance, > except for the base image and resalloc pool tag issues, I also found there is > a strange thing on bash command, check this code from dist-git [1] below: > ``` > if [ ! -w $REPODIR ] ; then > echo "ERROR: You can not write to $REPODIR" > echo "ERROR: You can not create repos" > exit -1 > fi > ``` > This would always fail in an aarch64 container which uses the identical > dockerfile as the x86 ones. > ``` > > FROM registry.fedoraproject.org/fedora:35 > MAINTAINER copr-devel@lists.fedorahosted.org > > ``` > Could this be a fedora issue? Considering I tried fedora 35/36/37 which all > failed. > > > [1]: > https://github.com/release-engineering/dist-git/blob/738dc51b8dff6f06a3d4be5f0f480aebf36b1480/scripts/dist-git/setup_git_package#L72 > > ___ > copr-devel mailing list -- copr-devel@lists.fedorahosted.org > To unsubscribe send an email to copr-devel-le...@lists.fedorahosted.org > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org > Do not reply to spam, report it: > https://pagure.io/fedora-infrastructure/new_issue ___ copr-devel mailing list -- copr-devel@lists.fedorahosted.org To unsubscribe send an email to copr-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Inconsistency of bash behaviour on fedora aarch64 and x86_64 images
Hey COPR Developers, Recently, I am trying to deploy COPR containers on an arm instance, except for the base image and resalloc pool tag issues, I also found there is a strange thing on bash command, check this code from dist-git [1] below: ``` if [ ! -w $REPODIR ] ; then echo "ERROR: You can not write to $REPODIR" echo "ERROR: You can not create repos" exit -1 fi ``` This would always fail in an aarch64 container which uses the identical dockerfile as the x86 ones. ``` FROM registry.fedoraproject.org/fedora:35 MAINTAINER copr-devel@lists.fedorahosted.org ``` Could this be a fedora issue? Considering I tried fedora 35/36/37 which all failed. [1]: https://github.com/release-engineering/dist-git/blob/738dc51b8dff6f06a3d4be5f0f480aebf36b1480/scripts/dist-git/setup_git_package#L72 ___ copr-devel mailing list -- copr-devel@lists.fedorahosted.org To unsubscribe send an email to copr-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue