LC_ALL=C mkinitrd /boot/initrd-2.6.37-desktop-3.mga.img 2.6.37-desktop-3.mga -v -f Creating initramfs /sbin/mkinitrd: line 1099: [: too many arguments Looking for driver for /dev/sda1 in /sys/block/sda/sda1 Looking for deps of module scsi:t-0x00: crc-t10dif scsi_mod sd_mo Version-Release number of selected component (if applicable): mkinitrd-6.0.93-21.mga1 How reproducible: always Steps to Reproduce: 1.recreate your mkinitrd file with 2. mkinitrd /boot/initrd-2.6.37-desktop-3.mga.img 2.6.37-desktop-3.mga -v -f 3. read the first line It's probably harmless but just in case. cat /etc/sysconfig/mkinitrd # This file can be used to alter the default behaviour of mkinitrd. # It is a bash shell script that is sourced by mkinitrd before option parsing # so variables set there will be used by mkinitrd instead of defaults. # Be aware that modifying this file is not supported and should be done only # as a workaround to specific problems. # To see what can be set here check the mkinitrd script (hint: look at the # beginning of the script and at lines following 'while [ $# -gt 0 ]; do') Attached in the log of mkinitrd. Reproducible: Steps to Reproduce:
Created attachment 21 [details] Mkinitrd log Mkinitrd log created with a LC_ALL=C mkinitrd /boot/initrd-2.6.37-desktop-3.mga.img 2.6.37-desktop-3.mga -v -f
Created attachment 164 [details] Result of bash --norc -x ./mkinitrd /boot/initrd-2.6.38-desktop-1.mga.img 2.6.38-desktop-1.mga -f Attached is the result of bash --norc -x ./mkinitrd /boot/initrd-2.6.38-desktop-1.mga.img 2.6.38-desktop-1.mga -f as suggested by rtp on irc The file is bzip2 since it's 2.5 mo :)
CC: (none) => pterjan, tmb
It seems /sys${syspath}/device/*:*/driver/module returns several files because of usb devices appearing in /sys/devices/pci0000:00/0000:00:1d.1/usb7
(In reply to comment #3) > It seems /sys${syspath}/device/*:*/driver/module returns several files because > of usb devices appearing in /sys/devices/pci0000:00/0000:00:1d.1/usb7 for the records, it happens with every webcam having a button. Reproduced with an old pwc webcam. One possible fix may be : @@ -1096,10 +1096,15 @@ fi if [ -z "${kbddrivers##*/*}" ]; then withusb=1 for syspath in $(echo ${kbddrivers} | sed 's/Sysfs=//g'); do - [ -z "${syspath##*/*}" ] && [ -L /sys${syspath}/device/*:*/driver/module ] && \ - findmodule -$(basename $(readlink /sys${syspath}/device/*:*/driver/module)) + if [ -z "${syspath##*/*}" ]; then + d=$(readlink /sys${syspath}/device/driver) + [[ "$d" =~ usbhid ]] && \ + [ -L /sys${syspath}/device/*:*/driver/module ] && \ + findmodule -$(basename $(readlink /sys${syspath}/device/*:*/driver/module)) && + findmodule -usbhid + fi + done - findmodule -usbhid fi if [ "$withusb" == "1" ]; then Pascal, any opinion ?
CC: (none) => arnaud.patard
ping ? (so we can fix it for mageia 1 ? :) )
Keywords: (none) => PATCHPriority: Normal => release_blockerCC: (none) => thierry.vignaud
It seems correct but I couldn't test it yet, it would be great if someone else could check it :)
I can confirm that this patch removed the line 1099: [: too many arguments when it's used on current mkinitrd.
& of course i can still boot with the new initrd created by the patched mkinitrd
Please update with mkinitrd-6.0.93-23.mga1 (thanks rtp)
Status: NEW => RESOLVEDCC: (none) => ennael1Resolution: (none) => FIXED