Description of problem: After building a kernel, it cannot be installed. The mkinitrd fails with /sbin/mkinitrd: line 541: syntax error near unexpected token `done' /sbin/mkinitrd: line 541: ` done' Version-Release number of selected component (if applicable): mkinitrd-6.0.22-1.fc9 How reproducible: Always Steps to Reproduce: 1. build a kernel 2. make modules_install 3. copy vmlinuz (this may be optional) 4. run mkinitrd as usual: mkinitrd /boot/initrd-foo.img foo Actual results: [root@simbelmyne linux-2.6.24-rc6-ub]# mkinitrd /boot/initrd-2.6.24-rc6-ub.img 2.6.24-rc6-ub /sbin/mkinitrd: line 541: syntax error near unexpected token `done' /sbin/mkinitrd: line 541: ` done' [root@simbelmyne linux-2.6.24-rc6-ub]# Expected results: mkinitrd working Additional info: rpm -V mkinitrd passes ok
I replaced "if" with "elif" a few lines up in "elif [[ "$device" =~ ^dm- ]]; then" and it seems to fix the issue.