Bug 426570 - mkinitrd shell syntax error
Summary: mkinitrd shell syntax error
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: rawhide
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-22 08:47 UTC by Pete Zaitcev
Modified: 2008-01-09 04:52 UTC (History)
2 users (show)

Fixed In Version: 6.0.27-2.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-09 04:52:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pete Zaitcev 2007-12-22 08:47:54 UTC
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

Comment 1 Pete Zaitcev 2007-12-22 08:50:38 UTC
I replaced "if" with "elif" a few lines up in "elif [[ "$device" =~ ^dm- ]];
 then" and it seems to fix the issue.


Note You need to log in before you can comment on or make changes to this bug.