utils_disk: check the mount point by findmnt cmd#4098
utils_disk: check the mount point by findmnt cmd#4098YongxueHong merged 1 commit intoavocado-framework:masterfrom
Conversation
|
Hi @hellohellenmao Could you please check if this MR can fix the error that you encountered, thanks. |
I do not think so, for my case is invoking the |
Updated the code, could you please add your logs to the issue, thanks. |
|
Still hit the issue with the patch , does it work from your side @leidwang
|
5d6c80f to
6919eca
Compare
|
Hi @PaulYuuu Could you please review this MR? Thanks. |
|
Hi @PaulYuuu @hellohellenmao Would you please help review this MR, thanks. |
YvanY0
left a comment
There was a problem hiding this comment.
Almost LGTM, but you should rebase the branch to fix the CI issue.
|
Hi @PaulYuuu Could you please help involve others to review this PR?Thanks. |
As this is related to block feature, I think @qingwangrh @YongxueHong should be the right persons to review. And, not only us use this, we should also include libvirt people to review if needed. |
|
hi, @leidwang , if we want fewer changes, how about changing "cat /proc/mount" to "mount" |
Hi @qingwangrh |
Agree. And |
|
It makes sense to use findmnt if we want to support softlink. mount | grep $(readlink -f xxx) also may support softlink The findmnt may get better readability output, |
Sure, for example, if we mount nfs to
|
Hi @leidwang
|
Yes, it only happens in image mode OS, it should be related to image mode os file system is read-only, only /var and /etc are writable.
|
|
I don't think it's only related to image mode, no one can promise users will not create a softlink. For instance, avocado will point the iso path to |
c5df768 to
4e536ed
Compare
c44f0d1 to
b08a936
Compare
|
Hi @PaulYuuu @YongxueHong I have updated the code according to our offline discussion, would you please check it again?Thanks. |
|
Hi @leidwang @hellohellenmao @qingwangrh |
|
change the commit message "check the moint point by findmnt cmd" -> check the mount point by findmnt cmd |
Run the installation test case as it will call this function. JOB LOG : /root/avocado/job-results/job-2025-07-03T10.37-7bff2d1/job.log |
Currently, if we run the test in image mode, the mount path check will not match because the directory is redirected, so use findmnt to solve this problem. Signed-off-by: Leidong Wang <leidwang@redhat.com>
|
Tested this PR on image mode and package mode, all works well. |
|
Hi @YongxueHong @PaulYuuu If there is no more comments for this MR, would you please help merge it?Thanks. |
Since avocado-framework#4098, using findmnt to find mount points. It is file type sensitive, so add nfs4 to support nfs4 type. Signed-off-by: liang-cong-red-hat <lcong@redhat.com>
Since avocado-framework#4098, using findmnt to find mount points. It is file type sensitive, so add nfs4 to support nfs4 type. Signed-off-by: liang-cong-red-hat <lcong@redhat.com>
Currently, if we run the test in image mode, the mount path check will not match because the directory is redirected,
so use findmnt to solve this problem.
ID: 3444