On Thu, Jul 08, 2004 at 12:45:54AM +0200, Erik P. Olsen wrote:
[root epo kernels]# rpm -ivh kernel-2.6.6-1.435.2.3.i686.rpm
Preparing... ###########################################
[100%]
1:kernel ###########################################
[100%]
/sbin/mkinitrd: line 294: /sbin/nash: No such file or directory
/sbin/mkinitrd: line 294: /sbin/nash: No such file or directory
/sbin/mkinitrd: line 294: /sbin/nash: No such file or directory
/sbin/mkinitrd: line 294: /sbin/nash: No such file or directory
no temporary directory could be found
mkinitrd failed
[root epo kernels]#
/sbin/nash is a link to /sbin/nash-i386 which is not on the system.
What's in this file and how can I recreate it?
On FC2 I see:
$ ls -l /sbin/nash
-rwxr-xr-x 1 root root 37476 May 6 18:50 /sbin/nash
$ file /sbin/nash
/sbin/nash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped
$ rpm -q --whatprovides /sbin/nash
mkinitrd-3.5.22-1
$
Note that FC2 nash is not a link.
You should be able to reinstall nash with rpm.
A surgeon might do the rpm -r or rpm2cpio set of tricks.
$ rpm -q --list mkinitrd
/sbin/grubby
/sbin/installkernel
/sbin/mkinitrd
/sbin/nash
/sbin/new-kernel-pkg
/usr/share/man/man8/grubby.8.gz
/usr/share/man/man8/mkinitrd.8.gz
/usr/share/man/man8/nash.8.gz