do not use grep to test if sysroot is mounted
[dracut.git] / HACKING
blob614aa506a4875a4a3e8165c216903ec40e7fc6e8
1 Right now, I'm doing most of my testing using a qemu/kvm guest and
2 generating the initramfs on another box but the support is all present
3 to build for the "running" machine.  For the former, you can boot the guest
4 using qemu's -kernel and -initrd options.  Currently supported rootfs
5 types are regular partitions, root-on-lvm and root-on-lvm-on-encrypted-pv.
7 dracut exists and will build an image.  It is command-line equivalent
8 to most mkinitrd implementations and should be pretty straight-forward
9 to use.  
11 To use, just run dracut with an output file name and, optionally, a
12 kernel version (it defaults to using the current).   The appropriate
13 modules will be copied over and things should be good to go.  If you'd
14 like to customize the list of modules copied in, edit /etc/dracut.conf
15 and set
16   modules="foo bar baz"
19 Requirements:
20 * udev