| Summary: | While installing a new package, mkinitrd seems to failed with too much arguments | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | John Balcaen <balcaen.john> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | release_blocker | CC: | arnaud.patard, ennael1, pterjan, thierry.vignaud, tmb |
| Version: | Cauldron | Keywords: | PATCH |
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | mkinitrd-6.0.93-21.mga1.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: |
Mkinitrd log
Result of bash --norc -x ./mkinitrd /boot/initrd-2.6.38-desktop-1.mga.img 2.6.38-desktop-1.mga -f |
||
|
Description
John Balcaen
2011-02-21 13:28:06 CET
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 :)
Ahmad Samir
2011-03-25 03:15:53 CET
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 ? :) )
Thierry Vignaud
2011-05-17 10:18:30 CEST
Keywords:
(none) =>
PATCH 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 =>
RESOLVED |