Hide Forgot
Description of problem: mkdumprd -f /boot/initramfs-2.6.38-0.rc8.git0.1.fc15.x86_64.img 2.6.38-0.rc8.git0.1.fc15.x86_64 basename: missing operand Try `basename --help' for more information. Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. How reproducible: always Additional info: kexec-tools-2.0.0-41.fc15.x86_64 seems to be problem on line 375 in mkdumprd
Try "mkdumprd -d -f /boot/initramfs-2.6.38-0.rc8.git0.1.fc15.x86_64.img 2.6.38-0.rc8.git0.1.fc15.x86_64" Read /etc/rc.d/init.d/kdump and you can understand.
mkdumprd -d -f /boot/initramfs-2.6.38-0.rc8.git0.1.fc15.x86_64.img 2.6.38-0.rc8.git0.1.fc15.x86_64 basename: missing operand Try `basename --help' for more information. Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. I reported it because /etc/rc.d/init.d/kdump fails. kdump.conf: path /var/crash ext4 UUID=416ba429-4dba-49a1-aa44-1b3837fff2ea core_collector makedumpfile -c
There is no use of the basename command on line 375 in mkdumprd. Can you run the mkdumprd command with set -x appended right after the top line in the file?
sorry I had some debug stuff there already, it's modalias=$(cat $(find /sys/devices -name modalias | grep $(basename $(readlink ./device)))) + '[' -z /sys/block/sda ']' + pushd /sys/block/sda + findstoragedriverinsys + '[' '!' -L device ']' ++ readlink ./device + cd ../../../0:0:0:0 + '[' '!' -f modalias ']' +++ find /sys/devices -name modalias +++++ readlink ./device ++++ basename basename: missing operand Try `basename --help' for more information. +++ grep Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. ++ cat
Created attachment 484262 [details] Proposed fix Saw it as well; this fixed that.
Created attachment 484263 [details] Another fixup needed for mkdumprd to finish Attaching another fix here, that was needed for mkdumprd to finish correctly so that fix the original issue could be verified.
thanks a lot, works for me.
fixed in kexec-tools-2.0.0-45. Thanks!