Summary: | sys-devel/prelink-20120628: read-only files (mounts) trigger abort: Could not rename temporary to ... - Invalid cross-device link | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugzilla.redhat.com/show_bug.cgi?id=118251 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Dennis Schridde
2012-10-05 15:14:11 UTC
It appears that prelink tries to prelink on r/o partitions. When I remount /usr and /opt r/w, the "could not rename temporary — invalid cross-device link" errors are gone. So prelink or the cronjob-script should probably warn in such case, and skip all binaries on r/o partitions? This issue was also reported for Fedora a while ago. They implemented a fix, that does not mess up completely, but did not address the issue of the target file being read-only. If detecting read-only partitions is too complex, maybe it would be easier to detect whether the target file is read-only, and skip it (in an early phase) in that case. > read-only files (mounts) trigger lots of warnings: Invalid cross-device link
They do not only trigger a warning, but apparently also SIGABRT (quoting an email from cron):
/etc/cron.daily/prelink: line 57: 5723 Aborted /usr/sbin/prelink -av $PRELINK_OPTS >> ${log} 2>&1
please retest with prelink-20151030 |