Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th December 2011, 04:21 PM
chrismurphy Offline
Registered User
 
Join Date: May 2010
Posts: 867
macoschrome
Exclamation dracut manpage wrong

Either that, or I'm an idiot.

Man page for dracut says:

Code:
 --add-drivers <list of modules>
specify a space-separate list of kernel modules to add to the initramfs.
It actually says this for multiple flags, including --add, --omit, etc. But I have not tested those flags to see if it behaves the same as --add-drivers which definitely does not behave as described.

I get errors if I do:
Code:
dracut --add-drivers nouveau drm initramfs-3.1.5-1.fc16.x86_64.img
I do not get errors if I do
Code:
dracut --add-drivers nouveau --add-drivers drm initramfs-3.1.5-1.fc16.x86_64.img
The first instance is a list. And add-drivers, plural, is what I'm trying to do. The second instance is not a list, and is not plural drivers. It seem like it should be --add-driver <kernel module>, not what's actually in the man page. WTF?

---------- Post added at 09:21 AM ---------- Previous post was at 09:13 AM ----------



so is it widely understood that lists go in quotes? Because
Code:
dracut --add-drivers "nouveau drm" initramfs-3.1.5-1.fc16.x86_64.img
works also. But talk about non-obvious...

Last edited by chrismurphy; 14th December 2011 at 07:02 PM.
Reply With Quote
  #2  
Old 14th December 2011, 05:22 PM
VernDog Offline
Registered User
 
Join Date: Aug 2009
Posts: 226
linuxchrome
Re: dracut manpage wrong

I'm just trying to figure out what dracut's full usage is. I first encountered it here, step#3:
dracut /boot/initramfs-$(uname -r).img $(uname -r)

Last edited by VernDog; 14th December 2011 at 05:22 PM. Reason: spelling
Reply With Quote
  #3  
Old 14th December 2011, 06:26 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,979
linuxchrome
Re: dracut manpage wrong

You could submit a bug, suggesting they include examples.

A few years ago, it seemed that most Linux pages considered an EXAMPLES section beneath them, but these days, I note that many pages do have an examples section. From the man page description, I think most people would guess it would be

--addmodules nouveau drm



should work. Putting them both in one quote seems as if it would be looking for a module called nouveau drm.

EDIT: See Chris' post below, I mistyped and should have used --add-drivers

(I read it right, just my fingers typed addmodules.)

Last edited by smr54; 14th December 2011 at 07:58 PM.
Reply With Quote
  #4  
Old 14th December 2011, 07:01 PM
chrismurphy Offline
Registered User
 
Join Date: May 2010
Posts: 867
macoschrome
Re: dracut manpage wrong

--addmodules is not one of the available flags and results in an unknown option error. -m, --modules is but --modules nouveau drm does not work because they are not dracut modules. For kernel modules *.ko files, it's --add-drivers.

Code:
dracut -f --modules plymouth btrfs initramfs-3.1.5-1.fc16.x86_64.img
does not end in an error, but creates a file "btrfs" rather than replacing the file initramfsXXX.img

So even --modules is fakaked.

For --add-drivers I get errors as well....

Code:
[root@f16v boot]# dracut -f --add-drivers vboxvideo drm initramfs-3.1.5-1.fc16.x86_64.img
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
find: `/lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/': No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
find: `/lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/': No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
F: No modules.builtin.bin and modules.builtin found!
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
find: `/lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/': No such file or directory
find: `/lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/': No such file or directory
find: `/lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/': No such file or directory
find: `/lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/': No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/modules.dep: No such file or directory
find: `/lib/modules/initramfs-3.1.5-1.fc16.x86_64.img/': No such file or directory
It clearly thinks that I want an initramfs.img named drm, and makes a file named such.

OK, either dracut or the man page is broken. Should I file a bug against dracut or manpages?

---------- Post added at 11:43 AM ---------- Previous post was at 11:39 AM ----------

If I add the kernel-release at the end, it just spits out the man page at me.

---------- Post added at 11:44 AM ---------- Previous post was at 11:43 AM ----------

dracut 013-19.fc16

---------- Post added at 12:01 PM ---------- Previous post was at 11:44 AM ----------

Filed a bug. Bug 767736.
Reply With Quote
  #5  
Old 14th December 2011, 07:59 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,979
linuxchrome
Re: dracut manpage wrong

Good, hopefully, they'll add a clearer explanation to the man page. You'll note that I edited my post--don't know why I typed addmodules instead of add-drivers.
Reply With Quote
  #6  
Old 14th December 2011, 08:45 PM
chrismurphy Offline
Registered User
 
Join Date: May 2010
Posts: 867
macoschrome
Re: dracut manpage wrong

If possible I'd have them drop the quotes requirement, and work like the man page describes. The quotes is confusing like you said, but then also when reading man pages, often times they put examples in quotes or use quotes for other things, so it might be even more confusing if the man page description for parameters shows quotes. Unless they show examples!
Reply With Quote
Reply

Tags
dracut, manpage, misleading, wrong

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I see libc-manpage? bangwall Installation and Live Media 1 24th April 2011 12:01 PM
F11 dracut and new 32.9 kernel initramfs SlowJet Using Fedora 9 4th March 2010 12:06 AM
The road to dracut was paved with LVM SlowJet Fedora 12 Alpha, Beta & Release Candidates 1 11th September 2009 01:21 AM
Dracut? Demz Fedora 12 Alpha, Beta & Release Candidates 0 3rd July 2009 01:02 AM
manpage info for crontab lsatenstein Using Fedora 3 13th June 2007 06:34 PM


Current GMT-time: 00:27 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat