2013-02-23 08:36:36 +00:00
|
|
|
--- dracut-025_git201302211113.orig/dracut.8.asc
|
|
|
|
+++ dracut-025_git201302211113/dracut.8.asc
|
|
|
|
@@ -18,7 +18,7 @@ DESCRIPTION
|
2012-11-05 14:10:11 +00:00
|
|
|
Create an initramfs <image> for the kernel with the version <kernel version>.
|
|
|
|
If <kernel version> is omitted, then the version of the actual running
|
|
|
|
kernel is used. If <image> is omitted or empty, then the default location
|
|
|
|
-/boot/initramfs-<kernel version>.img is used.
|
|
|
|
+/boot/initrd-<kernel version> is used.
|
|
|
|
|
|
|
|
dracut creates an initial image used by the kernel for preloading the block
|
|
|
|
device modules (such as IDE, SCSI or RAID) which are needed to access the root
|
2013-02-23 08:36:36 +00:00
|
|
|
@@ -47,7 +47,7 @@ To create a initramfs image, the most si
|
2012-11-05 14:10:11 +00:00
|
|
|
|
|
|
|
This will generate a general purpose initramfs image, with all possible
|
|
|
|
functionality resulting of the combination of the installed dracut modules and
|
|
|
|
-system tools. The image is /boot/initramfs-_++<kernel version>++_.img and
|
|
|
|
+system tools. The image is /boot/initrd-_++<kernel version>++_ and
|
|
|
|
contains the kernel modules of the currently active kernel with version
|
|
|
|
_++<kernel version>++_.
|
|
|
|
|
2013-02-23 08:36:36 +00:00
|
|
|
--- dracut-025_git201302211113.orig/dracut.asc
|
|
|
|
+++ dracut-025_git201302211113/dracut.asc
|
|
|
|
@@ -150,7 +150,7 @@ To create a initramfs image, the most si
|
2012-11-05 14:10:11 +00:00
|
|
|
|
|
|
|
This will generate a general purpose initramfs image, with all possible
|
|
|
|
functionality resulting of the combination of the installed dracut modules and
|
|
|
|
-system tools. The image is /boot/initramfs-_++<kernel version>++_.img and
|
|
|
|
+system tools. The image is /boot/initrd-_++<kernel version>++_ and
|
|
|
|
contains the kernel modules of the currently active kernel with version
|
|
|
|
_++<kernel version>++_.
|
|
|
|
|
2013-02-23 08:36:36 +00:00
|
|
|
@@ -190,12 +190,12 @@ kernel) as a fallback to rescue your sys
|
2012-11-05 14:10:11 +00:00
|
|
|
=== Inspecting the Contents
|
|
|
|
To see the contents of the image created by dracut, you can use the lsinitrd tool.
|
|
|
|
----
|
|
|
|
-# lsinitrd /boot/initramfs-$(uname -r).img | less
|
|
|
|
+# lsinitrd /boot/initrd-$(uname -r) | less
|
|
|
|
----
|
|
|
|
|
|
|
|
To display the contents of a file in the initramfs also use the lsinitrd tool:
|
|
|
|
----
|
|
|
|
-# lsinitrd /boot/initramfs-$(uname -r).img /etc/ld.so.conf
|
|
|
|
+# lsinitrd /boot/initrd-$(uname -r) /etc/ld.so.conf
|
|
|
|
include ld.so.conf.d/*.conf
|
|
|
|
----
|
|
|
|
|
2013-02-23 08:36:36 +00:00
|
|
|
@@ -206,7 +206,7 @@ _/etc/dracut.conf_ or _/etc/dracut.conf.
|
2012-11-05 14:10:11 +00:00
|
|
|
You can also add dracut modules on the command line
|
|
|
|
by using the -a or --add option:
|
|
|
|
----
|
|
|
|
-# dracut --add bootchart initramfs-bootchart.img
|
|
|
|
+# dracut --add bootchart initrd-bootchart
|
|
|
|
----
|
|
|
|
|
|
|
|
To see a list of available dracut modules, use the --list-modules option:
|
2013-02-23 08:36:36 +00:00
|
|
|
@@ -235,7 +235,7 @@ automatically picked up by dracut, you h
|
2012-11-05 14:10:11 +00:00
|
|
|
on the command line or the drivers vaiable in the _/etc/dracut.conf_
|
|
|
|
or _/etc/dracut.conf.d/myconf.conf_ configuration file (see <<dracutconf5>>):
|
|
|
|
----
|
|
|
|
-# dracut --add-drivers mymod initramfs-with-mymod.img
|
|
|
|
+# dracut --add-drivers mymod initrd-with-mymod
|
|
|
|
----
|
|
|
|
|
|
|
|
== Boot parameters
|
2013-02-23 08:36:36 +00:00
|
|
|
@@ -348,7 +348,7 @@ To add your own files to the initramfs i
|
2012-11-05 14:10:11 +00:00
|
|
|
|
|
|
|
The --include option let you specify a source path and a target path. For example
|
|
|
|
----
|
|
|
|
-# dracut --include cmdline-preset /etc/cmdline.d/mycmdline.conf initramfs-cmdline-pre.img
|
|
|
|
+# dracut --include cmdline-preset /etc/cmdline.d/mycmdline.conf initrd-cmdline-pre.img
|
|
|
|
----
|
|
|
|
will create an initramfs image, where the file cmdline-preset will be copied
|
|
|
|
inside the initramfs to _/etc/cmdline.d/mycmdline.conf_. --include can only be specified once.
|
2013-02-23 08:36:36 +00:00
|
|
|
@@ -370,7 +370,7 @@ rd.live.overlay/
|
2012-11-05 14:10:11 +00:00
|
|
|
└── conf.d
|
|
|
|
└── testvar.conf
|
|
|
|
|
|
|
|
-# dracut --include rd.live.overlay / initramfs-rd.live.overlay.img
|
|
|
|
+# dracut --include rd.live.overlay / initrd-rd.live.overlay.img
|
|
|
|
----
|
|
|
|
|
|
|
|
This will put the contents of the rd.live.overlay directory into the root of the
|
2013-02-23 08:36:36 +00:00
|
|
|
@@ -382,7 +382,7 @@ creation time.
|
2012-11-05 14:10:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
-# dracut --install 'strace fsck.ext3 ssh' initramfs-dbg.img
|
|
|
|
+# dracut --install 'strace fsck.ext3 ssh' initrd-dbg
|
|
|
|
----
|
|
|
|
|
|
|
|
This will create an initramfs with the strace, fsck.ext3 and ssh executables,
|
2013-02-23 08:36:36 +00:00
|
|
|
@@ -434,7 +434,7 @@ For example for a NFS image, you would d
|
2012-11-05 14:10:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
-# dracut -m "nfs network base" initramfs-nfs-only.img
|
|
|
|
+# dracut -m "nfs network base" initrd-nfs-only
|
|
|
|
----
|
|
|
|
|
|
|
|
Then you would boot from this image with your target machine and reduce the size
|
2013-02-23 08:36:36 +00:00
|
|
|
@@ -442,7 +442,7 @@ once more by creating it on the target m
|
2012-11-05 14:10:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
-# dracut -m "nfs network base" --host-only initramfs-nfs-host-only.img
|
|
|
|
+# dracut -m "nfs network base" --host-only initrd-nfs-host-only
|
|
|
|
----
|
|
|
|
|
|
|
|
This will reduce the size of the initramfs image significantly.
|
2013-02-23 08:36:36 +00:00
|
|
|
--- dracut-025_git201302211113.orig/dracut-initramfs-restore.sh
|
|
|
|
+++ dracut-025_git201302211113/dracut-initramfs-restore.sh
|
2012-11-05 14:10:11 +00:00
|
|
|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
|
|
set -e
|
|
|
|
cd /run/initramfs
|
|
|
|
-IMG="/boot/initramfs-$(uname -r).img"
|
|
|
|
+IMG="/boot/initrd-$(uname -r)"
|
|
|
|
[ -f .need_shutdown -a -f "$IMG" ] || exit 1
|
|
|
|
if zcat "$IMG" | cpio -id >/dev/null 2>&1; then
|
|
|
|
rm .need_shutdown
|
2013-02-23 08:36:36 +00:00
|
|
|
--- dracut-025_git201302211113.orig/dracut.sh
|
|
|
|
+++ dracut-025_git201302211113/dracut.sh
|
|
|
|
@@ -442,7 +442,7 @@ if ! [[ $kernel ]]; then
|
2012-11-05 14:10:11 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if ! [[ $outfile ]]; then
|
|
|
|
- outfile="/boot/initramfs-$kernel.img"
|
|
|
|
+ outfile="/boot/initrd-$kernel"
|
|
|
|
fi
|
|
|
|
|
|
|
|
for i in /usr/sbin /sbin /usr/bin /bin; do
|
2013-02-23 08:36:36 +00:00
|
|
|
--- dracut-025_git201302211113.orig/lsinitrd.1.asc
|
|
|
|
+++ dracut-025_git201302211113/lsinitrd.1.asc
|
|
|
|
@@ -15,7 +15,7 @@ SYNOPSIS
|
2012-11-05 14:10:11 +00:00
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
lsinitrd shows the contents of an initramfs image. if <image> is omitted, then
|
|
|
|
-lsinitrd uses the default image /boot/initramfs-<kernel version>.img.
|
|
|
|
+lsinitrd uses the default image /boot/initrd-<kernel version>.
|
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
-------
|
2013-02-23 08:36:36 +00:00
|
|
|
--- dracut-025_git201302211113.orig/lsinitrd.sh
|
|
|
|
+++ dracut-025_git201302211113/lsinitrd.sh
|
|
|
|
@@ -36,7 +36,7 @@ while getopts "s" opt; do
|
2012-11-05 14:10:11 +00:00
|
|
|
done
|
|
|
|
shift $((OPTIND-1))
|
|
|
|
|
|
|
|
-image="${1:-/boot/initramfs-$(uname -r).img}"
|
|
|
|
+image="${1:-/boot/initrd-$(uname -r)}"
|
|
|
|
[[ -f "$image" ]] || { echo "$image does not exist" ; exit 1 ; }
|
|
|
|
|
|
|
|
CAT=zcat
|
2013-02-23 08:36:36 +00:00
|
|
|
--- dracut-025_git201302211113.orig/mkinitrd-dracut.sh
|
|
|
|
+++ dracut-025_git201302211113/mkinitrd-dracut.sh
|
|
|
|
@@ -11,7 +11,7 @@ usage () {
|
2012-11-05 14:10:11 +00:00
|
|
|
$cmd " [--nocompress]"
|
|
|
|
$cmd " <initrd-image> <kernel-version>"
|
|
|
|
$cmd ""
|
|
|
|
- $cmd " (ex: ${0##*/} /boot/initramfs-$kver.img $kver)"
|
|
|
|
+ $cmd " (ex: ${0##*/} /boot/initrd-$kver $kver)"
|
|
|
|
|
|
|
|
[[ $1 = '-n' ]] && exit 0
|
|
|
|
exit 1
|