Bug 771106 - The mkinitrd script has a bug on 52d line.
Summary: The mkinitrd script has a bug on 52d line.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 16
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-01 12:44 UTC by Sergey Khvostov
Modified: 2012-01-23 21:59 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-23 10:29:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sergey Khvostov 2012-01-01 12:44:00 UTC
Description of problem:
If you try ti rebuild initrd by mkinitrd script, you get following message:
/sbin/mkinitrd: line 52: read_args: command not found

How reproducible:
# mkinitrd --preload scsi_mod,sd_mod,libata,ahci,ehci-hcd,ohci-hcd,uhci-hcd,jbd,ext3,ata_piix,ext4 /boot/initramfs-3.1.6-1.fc16.x86_64.img.1 3.1.6-1.fc16.x86_64
/sbin/mkinitrd: line 52: read_args: command not found

  
Actual results:
Hanging during execution.

Expected results:
It must create initrd. )

Additional info:
The problem in following: the script has read_arg() function definition, but on line 52 it try to execute read_args function.
Solution is to edit line 52 and remove "s" in function calling.

Comment 1 Harald Hoyer 2012-01-05 09:57:23 UTC
Thanks for the finding... BUT ...

"mkinitrd --preload" will not really preload those modules. They are just included in the initramfs and not force loaded.

Better add a permanent configuration for dracut (mkinitrd replacement):

# echo 'add_drivers+=" scsi_mod sd_mod libata ahci ehci-hcd ohci-hcd uhci-hcd jbd ext3 ata_piix ext4 "' >> /etc/dracut.conf.d/99-mydrivers.conf

and add to the kernel command line:

rd.driver.pre=scsi_mod,sd_mod,libata,ahci,ehci-hcd,ohci-hcd,uhci-hcd,jbd,ext3,ata_piix,ext4

Comment 2 Sergey Khvostov 2012-01-05 19:12:32 UTC
Hello.

Thanks for your comment regarding "--preload" key and dracut. 
I'm talk not about dracut, but for mkinitrd.

Regarding bug: no metter with wich keys we're running mkinitrd script, in all cases we get error: "/sbin/mkinitrd: line 52: read_args: command not found".
As I said the fix of that problem is very easy, but it requaried some scripting skills. I'd like to see fixing of that problem in some of updates (not sure wich package including mkinitrd script). BTW, all updates at that time were installed.

In case of mkinitrd replacement, mkinitrd scipt must be EOLed or redirect to dracut or somewhere alse. Are you agree? ;) That's why I asking you to fix that problem for all Fedora users.

Thanks a lot.

Have a good day.

Comment 3 Sergey Khvostov 2012-01-05 19:12:58 UTC
Hello.

Thanks for your comment regarding "--preload" key and dracut. 
I'm talk not about dracut, but for mkinitrd.

Regarding bug: no metter with wich keys we're running mkinitrd script, in all cases we get error: "/sbin/mkinitrd: line 52: read_args: command not found".
As I said the fix of that problem is very easy, but it requaried some scripting skills. I'd like to see fixing of that problem in some of updates (not sure wich package including mkinitrd script). BTW, all updates at that time were installed.

In case of mkinitrd replacement, mkinitrd scipt must be EOLed or redirect to dracut or somewhere alse. Are you agree? ;) That's why I asking you to fix that problem for all Fedora users.

Thanks a lot.

Have a good day.

Comment 4 Sergey Khvostov 2012-01-05 19:13:17 UTC
Hello.

Thanks for your comment regarding "--preload" key and dracut. 
I'm talk not about dracut, but for mkinitrd.

Regarding bug: no metter with wich keys we're running mkinitrd script, in all cases we get error: "/sbin/mkinitrd: line 52: read_args: command not found".
As I said the fix of that problem is very easy, but it requaried some scripting skills. I'd like to see fixing of that problem in some of updates (not sure wich package including mkinitrd script). BTW, all updates at that time were installed.

In case of mkinitrd replacement, mkinitrd scipt must be EOLed or redirect to dracut or somewhere alse. Are you agree? ;) That's why I asking you to fix that problem for all Fedora users.

Thanks a lot.

Have a good day.

Comment 5 Sergey Khvostov 2012-01-05 19:15:41 UTC
Sorry for coping message, I had a confuse with submitions. (

Comment 6 Harald Hoyer 2012-01-06 13:24:32 UTC
(In reply to comment #4)
> Hello.
> 
> Thanks for your comment regarding "--preload" key and dracut. 
> I'm talk not about dracut, but for mkinitrd.
> 
> Regarding bug: no metter with wich keys we're running mkinitrd script, in all
> cases we get error: "/sbin/mkinitrd: line 52: read_args: command not found".
> As I said the fix of that problem is very easy, but it requaried some scripting
> skills. I'd like to see fixing of that problem in some of updates (not sure
> wich package including mkinitrd script). BTW, all updates at that time were
> installed.
> 
> In case of mkinitrd replacement, mkinitrd scipt must be EOLed or redirect to
> dracut or somewhere alse. Are you agree? ;) That's why I asking you to fix that
> problem for all Fedora users.

mkinitrd is already just a wrapper, which calls dracut.

> 
> Thanks a lot.
> 
> Have a good day.

Comment 7 Harald Hoyer 2012-01-23 10:29:09 UTC
fixed "mkinitrd"

Comment 8 Sergey Khvostov 2012-01-23 21:59:33 UTC
(In reply to comment #7)
> fixed "mkinitrd"

Thank you!

Hava a nice day.


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