rpm annoying "failed to stat" warnings in chroot
Bug #635844 reported by
Jeff Johnson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
Triaged
|
Low
|
Unassigned | ||
Fedora |
Won't Fix
|
Medium
|
Bug Description
tracker
tags: | added: chroot fedora ltsp mount |
Changed in rpm: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in fedora: | |
importance: | Unknown → Medium |
status: | Unknown → Won't Fix |
To post a comment you must log in.
/opt/ltsp/i386 contains a LTSP client chroot for read-only root NFS root boot.
/etc/mtab is symlinked to /proc/mounts as is standard for a read-only root chroot.
In my case, the host system has something mounted at /var/lib/mock. It shows up in /proc/mounts.
yum and rpm operations within this chroot print this warning message:
error: failed to stat /var/lib/mock: No such file or directory
This is because rpm is seeing /etc/mtab and is confused that this directory does not exist when it is listed in /etc/mtab.
This seems not harmful, but it is annoying and incorrect.
What can we do about this?
1) Would it be harmful to just turn off the warning message?
2) mount tools in util-linux-ng actually ignores /etc/mtab contents if it is a symlink.
3) Perhaps a combination of #1 and #2? Do not warn only if /etc/mtab is a symlink.