Bug 426570 - mkinitrd shell syntax error
mkinitrd shell syntax error
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: mkinitrd (Show other bugs)
rawhide
x86_64 Linux
low Severity low
: ---
: ---
Assigned To: Peter Jones
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-22 03:47 EST by Pete Zaitcev
Modified: 2008-01-08 23:52 EST (History)
2 users (show)

See Also:
Fixed In Version: 6.0.27-2.fc9
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-01-08 23:52:10 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Pete Zaitcev 2007-12-22 03:47:54 EST
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 03:50:38 EST
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.