Bugzilla – Bug 115217
mkinitrd fails to copy modules
Last modified: 2008-07-16 15:46:58 UTC
olaf@ibook:~> sudo rpm -Fvh stable/* --oldpackage Preparing... ########################################### [100%] 1:mkinitrd ########################################### [ 33%] 2:kernel-default ########################################### [ 67%] Setting up /lib/modules/2.6.13-20050903220008-default Root device: /dev/hda14 (mounted on / as ext3) Module list: Kernel image: /boot/vmlinux-2.6.13-20050903220008-default Initrd image: /boot/initrd-2.6.13-20050903220008-default Shared libs: lib/ld-2.3.5.so lib/libc-2.3.5.so lib/libselinux.so.1 Cannot determine dependencies of module ide-disk. Is modules.dep up to date? Cannot determine dependencies of module ide-tape. Is modules.dep up to date? Driver modules: none cp: missing destination file operand after „/var/tmp/mkinitramfs.Tf7357/mnt“ „cp --help“ gibt weitere Informationen. Failed to add module . You may now have to update your boot loader configuration. /sbin/mkinitrd failed error: %post(kernel-default-2.6.13-20050903220008) scriptlet failed, exit status 1 3:kernel-default-nongpl ########################################### [100%] Setting up /lib/modules/2.6.13-20050903220008-default olaf@ibook:~> rpm -q --changelog mkinitrd | head * Sa Sep 03 2005 - agruen@suse.de - Fix module parameter handling (broken with the #71218 fix). * Fr Sep 02 2005 - kasievers@suse.de - read DEV_ON_TMPFS from /etc/sysconfig/kernel (#114400) with default yes. * Sa Aug 27 2005 - cthiel@suse.de
after sudo su - -c 'bash -x /sbin/mkinitrd ' + echo + modules= + kernel_image=/boot/vmlinux-2.6.13-20050903220008-default + '[' / '!=' / ']' + initrd_image=/boot/initrd-2.6.13-20050903220008-default + '[' / '!=' / ']' + mkinitrd_kernel /boot/vmlinux-2.6.13-20050903220008-default /boot/initrd-2.6.1 3-20050903220008-default + local kernel_image=/boot/vmlinux-2.6.13-20050903220008-default initrd_image=/b oot/initrd-2.6.13-20050903220008-default + local kernel_version need_block_driver + local need_raidautorun + local -a features + local fs_modules drv_modules + tmp_mnt=/var/tmp/mkinitramfs.JC8026/mnt + tmp_mnt_small=/var/tmp/mkinitramfs.JC8026/mnt_small + tmp_msg=/var/tmp/mkinitramfs.JC8026/msg7980 + vendor_script=/var/tmp/mkinitramfs.JC8026/mnt/vendor_init.sh + '[' ramfs = rd ']' + linuxrc=/var/tmp/mkinitramfs.JC8026/mnt/init + '[' -f /boot/vmlinux-2.6.13-20050903220008-default ']' ++ /sbin/get_kernel_version /boot/vmlinux-2.6.13-20050903220008-default + kernel_version=2.6.13-20050903220008-default + echo -e 'Kernel image:\t/boot/vmlinux-2.6.13-20050903220008-default' Kernel image: /boot/vmlinux-2.6.13-20050903220008-default + echo -e 'Initrd image:\t/boot/initrd-2.6.13-20050903220008-default' Initrd image: /boot/initrd-2.6.13-20050903220008-default + '[' '!' -d /lib/modules/2.6.13-20050903220008-default/misc -a '!' -d /lib/modu les/2.6.13-20050903220008-default/kernel ']' + mkdir /var/tmp/mkinitramfs.JC8026/mnt mkdir: cannot create directory `/var/tmp/mkinitramfs.JC8026/mnt': File exists + error 1 'could not create temporary directory' + echo 'could not create temporary directory' could not create temporary directory + cleanup + '[' ramfs = rd ']' + rm -f /var/tmp/mkinitramfs.JC8026/initrd /var/tmp/mkinitramfs.JC8026/initrd.gz + initrd_bins=() + cleanup_finish + umount_proc + '[' '' ']' + mounted_proc= + '[' -d /var/tmp/mkinitramfs.JC8026 ']' + rm -rf /var/tmp/mkinitramfs.JC8026 + exit 1
uld_modules can be empty multiple kernels are not handled, like it is the case after the mkinitrd abort.
Created attachment 48748 [details] mkinitrd Fixed /sbin/mkinitrd. Please test with this.
the current one from abuild appears to work, that likely doesnt fix the mkdir bug.
the attached one appears to work.
Updated mkinitrd submitted to STABLE.