From Fedora Project Wiki

Line 2: Line 2:


Before filing a bug, please read up on [[Dracut/BugReporting| BugReporting]], which will tell you how to fill out useful bug reports that will help us quickly solve your problem.  Also try searching bugzilla for other reports about your problem, as some bugs are often filed by several people.
Before filing a bug, please read up on [[Dracut/BugReporting| BugReporting]], which will tell you how to fill out useful bug reports that will help us quickly solve your problem.  Also try searching bugzilla for other reports about your problem, as some bugs are often filed by several people.
== Getting the Source ==
The primary methods of distributing the Dracut source are source RPMs in the [http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/ Fedora development tree]  and git.  To access the current source code in in non-rpm format, you'll need to install git.
yum install git
Note that several related packages will be installed as well.  After the git source code management tool has been installed, then you use anonymous git access to the Dracut repository.
git clone http://dracut.git.sourceforge.net/git/dracut.git
If you have committer access to Dracut, then you will want to use the git+ssh access url.
git clone git+ssh://dracut.git.sourceforge.net/git/dracut.git
git clone http://dracut.git.sourceforge.net/git/dracut.git
Once you've committed changes locally, you can push them with
git push
If you would just like to browse the Dracut git repository via the web, then please use one of the following two [http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut Dracut git URLs] .
http://dracut.git.sourceforge.net/git/dracut.git
http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut


== Debugging ==
== Debugging ==

Revision as of 12:13, 2 July 2009

Reporting Problems

Before filing a bug, please read up on BugReporting, which will tell you how to fill out useful bug reports that will help us quickly solve your problem. Also try searching bugzilla for other reports about your problem, as some bugs are often filed by several people.

Getting the Source

The primary methods of distributing the Dracut source are source RPMs in the Fedora development tree and git. To access the current source code in in non-rpm format, you'll need to install git.

yum install git

Note that several related packages will be installed as well. After the git source code management tool has been installed, then you use anonymous git access to the Dracut repository.

git clone http://dracut.git.sourceforge.net/git/dracut.git

If you have committer access to Dracut, then you will want to use the git+ssh access url.

git clone git+ssh://dracut.git.sourceforge.net/git/dracut.git
git clone http://dracut.git.sourceforge.net/git/dracut.git

Once you've committed changes locally, you can push them with

git push

If you would just like to browse the Dracut git repository via the web, then please use one of the following two Dracut git URLs .

http://dracut.git.sourceforge.net/git/dracut.git

http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut

Debugging

Template:Admon/not

rdinitdebug
Note.png
set -x for the dracut shell
rdbreak=[pre-udev|pre-mount|mount|pre-pivot|]
Note.png
drop the shell on defined breakpoint
rdudevinfo
Note.png
set udev to loglevel info
dudevdebug
Note.png
set udev to loglevel debug
rdnetdebug
Note.png
debug network scripts in dracut