This commit is contained in:
parent
1bc672797a
commit
70e7587219
@ -20,7 +20,7 @@
|
||||
|
||||
--- dracut-026_git201303180829.orig/dracut.asc
|
||||
+++ dracut-026_git201303180829/dracut.asc
|
||||
@@ -150,7 +150,7 @@ To create a initramfs image, the most si
|
||||
@@ -153,7 +153,7 @@ To create a initramfs image, the most si
|
||||
|
||||
This will generate a general purpose initramfs image, with all possible
|
||||
functionality resulting of the combination of the installed dracut modules and
|
||||
@ -29,7 +29,7 @@
|
||||
contains the kernel modules of the currently active kernel with version
|
||||
_++<kernel version>++_.
|
||||
|
||||
@@ -190,12 +190,12 @@ kernel) as a fallback to rescue your sys
|
||||
@@ -193,12 +193,12 @@ kernel) as a fallback to rescue your sys
|
||||
=== Inspecting the Contents
|
||||
To see the contents of the image created by dracut, you can use the lsinitrd tool.
|
||||
----
|
||||
@ -44,7 +44,7 @@
|
||||
include ld.so.conf.d/*.conf
|
||||
----
|
||||
|
||||
@@ -206,7 +206,7 @@ _/etc/dracut.conf_ or _/etc/dracut.conf.
|
||||
@@ -209,7 +209,7 @@ _/etc/dracut.conf_ or _/etc/dracut.conf.
|
||||
You can also add dracut modules on the command line
|
||||
by using the -a or --add option:
|
||||
----
|
||||
@ -53,7 +53,7 @@
|
||||
----
|
||||
|
||||
To see a list of available dracut modules, use the --list-modules option:
|
||||
@@ -235,7 +235,7 @@ automatically picked up by dracut, you h
|
||||
@@ -238,7 +238,7 @@ automatically picked up by dracut, you h
|
||||
on the command line or the drivers vaiable in the _/etc/dracut.conf_
|
||||
or _/etc/dracut.conf.d/myconf.conf_ configuration file (see <<dracutconf5>>):
|
||||
----
|
||||
@ -62,7 +62,7 @@
|
||||
----
|
||||
|
||||
== Boot parameters
|
||||
@@ -348,7 +348,7 @@ To add your own files to the initramfs i
|
||||
@@ -351,7 +351,7 @@ To add your own files to the initramfs i
|
||||
|
||||
The --include option let you specify a source path and a target path. For example
|
||||
----
|
||||
@ -71,7 +71,7 @@
|
||||
----
|
||||
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.
|
||||
@@ -370,7 +370,7 @@ rd.live.overlay/
|
||||
@@ -373,7 +373,7 @@ rd.live.overlay/
|
||||
└── conf.d
|
||||
└── testvar.conf
|
||||
|
||||
@ -80,7 +80,7 @@
|
||||
----
|
||||
|
||||
This will put the contents of the rd.live.overlay directory into the root of the
|
||||
@@ -382,7 +382,7 @@ creation time.
|
||||
@@ -385,7 +385,7 @@ creation time.
|
||||
|
||||
|
||||
----
|
||||
@ -89,7 +89,7 @@
|
||||
----
|
||||
|
||||
This will create an initramfs with the strace, fsck.ext3 and ssh executables,
|
||||
@@ -434,7 +434,7 @@ For example for a NFS image, you would d
|
||||
@@ -437,7 +437,7 @@ For example for a NFS image, you would d
|
||||
|
||||
|
||||
----
|
||||
@ -98,7 +98,7 @@
|
||||
----
|
||||
|
||||
Then you would boot from this image with your target machine and reduce the size
|
||||
@@ -442,7 +442,7 @@ once more by creating it on the target m
|
||||
@@ -445,7 +445,7 @@ once more by creating it on the target m
|
||||
|
||||
|
||||
----
|
||||
@ -164,12 +164,13 @@
|
||||
|
||||
--- dracut-026_git201303180829.orig/51-dracut-rescue-postinst.sh
|
||||
+++ dracut-026_git201303180829/51-dracut-rescue-postinst.sh
|
||||
@@ -10,7 +10,7 @@ KERNEL_IMAGE="$2"
|
||||
[[ -f /etc/os-release ]] && . /etc/os-release
|
||||
[[ -f /etc/machine-id ]] && read MACHINE_ID < /etc/machine-id
|
||||
@@ -15,7 +15,7 @@ KERNEL_IMAGE="$2"
|
||||
[[ $MACHINE_ID ]] || exit 1
|
||||
[[ -f $KERNEL_IMAGE ]] || exit 1
|
||||
|
||||
-INITRDFILE="/boot/initramfs-${MACHINE_ID}-rescue.img"
|
||||
+INITRDFILE="/boot/initrd-${MACHINE_ID}-rescue"
|
||||
[[ -f $INITRDFILE ]] && exit 0
|
||||
-INITRDFILE="/boot/initramfs-0-rescue-${MACHINE_ID}.img"
|
||||
+INITRDFILE="/boot/initrd-0-rescue-${MACHINE_ID}"
|
||||
NEW_KERNEL_IMAGE="${KERNEL_IMAGE%/*}/vmlinuz-0-rescue-${MACHINE_ID}"
|
||||
|
||||
dropindirs_sort()
|
||||
[[ -f $INITRDFILE ]] && [[ -f $NEW_KERNEL_IMAGE ]] && exit 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user