Red Hat Bugzilla – Bug 219226
initscripts have problems with raidautorun due to changes in nash
Last modified: 2014-03-16 23:04:36 EDT
Description of problem:
The current version of /etc/rc.d/rc.sysconfig has the following line:
[ -x /sbin/nash ] && echo "raidautorun /dev/md0" | nash --quiet
The problem is that this happens, for obvious reasons, before non-/
file system are mounted and if /usr happens to be one of these then
you are getting:
nash: error while loading shared libraries: libnash.so.6.0.3: cannot open shared
object file: No such file or directory
with clear consequences for raidautorun.
The catch is that libnash.so.6.0.3 lives in /usr/lib/ or /usr/lib64/.
Actually a list of nash libraries on /usr is quite impressive:
What nash here buys over bash which is linked with three libraries
total and none of them on /usr?
Actually behind all of that is that nash is now linked dynamic,
starting with nash-6.0-1, which makes for initrd twice the size
as before, compressed and uncompressed. Not sure why this was done
but a changelog entry indicates that this was not an accident.
If nash was used because it was providing capabilities not available
without dynamic libraries like libparted and libbdevid then now this
is gone and replacements are not apparent.
Version-Release number of selected component (if applicable):
always in the circumstances as above
Removed from 8.49-1.
This could be fixed in 8.49-1 but rawhide still sports
initscripts-8.48-1 from 2006-11-28. Recent nash update to 6.0.6-5
does not help either.
Should be fixed in 8.51-1.