Bug 115217

Summary: mkinitrd fails to copy modules
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Olaf Hering <ohering>
Component: BasesystemAssignee: Hannes Reinecke <hare>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None    
Version: Beta 4   
Target Milestone: ---   
Hardware: PowerPC   
OS: Linux   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: mkinitrd

Description Olaf Hering 2005-09-04 13:05:34 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
Comment 1 Olaf Hering 2005-09-04 13:08:07 UTC
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 
 
Comment 3 Olaf Hering 2005-09-04 19:55:35 UTC
uld_modules can be empty
multiple kernels are not handled, like it is the case after the mkinitrd abort.
Comment 4 Hannes Reinecke 2005-09-05 08:47:53 UTC
Created attachment 48748 [details]
mkinitrd

Fixed /sbin/mkinitrd. Please test with this.
Comment 5 Olaf Hering 2005-09-05 11:19:48 UTC
the current one from abuild appears to work, that likely doesnt fix the mkdir bug.
Comment 6 Olaf Hering 2005-09-05 11:36:16 UTC
the attached one appears to work.

Comment 7 Hannes Reinecke 2005-09-05 14:38:13 UTC
Updated mkinitrd submitted to STABLE.