Bugzilla – Bug 154385
build: clean up /boot/efi error messages on rpm removal
Last modified: 2006-04-21 10:51:41 UTC
On ia64, we see lots of error messages trying to stat /boot/efi when the build script is installing/removing rpms from the build root, e.g. installing xorg-x11-libs-6.9.0-9 error: failed to stat /boot/efi: No such file or directory installing xorg-x11-devel-6.9.0-9 error: failed to stat /boot/efi: No such file or directory installing libstdc++-devel-4.1.0_20060123-5 error: failed to stat /boot/efi: No such file or directory installing gcc-c++-4.1.0_20060123-5 error: failed to stat /boot/efi: No such file or directory rpm has a habit of liking to stat the mount points when it installs/removes\ rpms. Creating the /boot/efi directory inside the build root during the setup phase takes care of it. Patch against build-2006.2.8-3 from factory.
Created attachment 70814 [details] create /boot/efi on ia64 during build root setup
Creating all the directories in /proc/mounts is IMHO the wrong approach (it's not just /boot/efi, rpm only reports the first error). Instead build should be called with '--ignoresize'.
Yeah, I agree. I didn't know rpm had that option. Thanks for pointing it out.
We now use this option.
I'm still seeing this with the latest version in factory (build-2006.3.27-2), or is there a newer version this is fixed in?
Do you see it when packages are installed or when packages are removed? Standard rpm only supports the "--ignoresize" option for package installation, not removal.
It's on package removal, for example, reusing the build root for the next package build. It cleans out the rpms no longer required. I'm pretty sure I tested adding --ignoresize to rpm -e lines and it worked. I'll test again this morning.
Reopening.
Yes, it works 'cause I patched the code. The problem is that it doesn't work with the rpm of the older distributions...
Ah, ok. Thanks.
Created attachment 78412 [details] ignore failed stat on rpm removal How about this instead of adding --ignoresize to the rpm -e lines?
Created attachment 78413 [details] fixed patch header
Looks sane. I'll apply it.
Fixed in STABLE.