summaryrefslogtreecommitdiffstats
path: root/debian/patches/initrd-not-initramfs.patch
blob: bcfbf394559a06bbe367fa1096ef4f163c5f4bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
--- a/man/dracut.8.asc
+++ b/man/dracut.8.asc
@@ -24,7 +24,7 @@
 _/boot/<machine-id>/<kernel-version>/initrd_,
 _/boot/efi/<machine-id>/<kernel-version>/initrd_,
 _/lib/modules/<kernel-version>/initrd_ or
-_/boot/initramfs-<kernel-version>.img_.
+_/boot/initrd.img-<kernel-version>_.
 
 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
--- a/dracut.sh
+++ b/dracut.sh
@@ -1154,7 +1154,7 @@
         elif [[ -f "$dracutsysrootdir"/lib/modules/${kernel}/initrd ]]; then
             outfile="$dracutsysrootdir/lib/modules/${kernel}/initrd"
         elif [[ -e $dracutsysrootdir/boot/vmlinuz-${kernel} ]]; then
-            outfile="$dracutsysrootdir/boot/initramfs-${kernel}.img"
+            outfile="$dracutsysrootdir/boot/initrd.img-${kernel}"
         elif [[ -z $dracutsysrootdir ]] \
             && [[ $MACHINE_ID ]] \
             && mountpoint -q /efi; then
@@ -1164,7 +1164,7 @@
             && mountpoint -q /boot/efi; then
             outfile="/boot/efi/${MACHINE_ID}/${kernel}/initrd"
         else
-            outfile="$dracutsysrootdir/boot/initramfs-${kernel}.img"
+            outfile="$dracutsysrootdir/boot/initrd.img-${kernel}"
         fi
     fi
 fi
--- a/man/dracut.usage.asc
+++ b/man/dracut.usage.asc
@@ -10,7 +10,7 @@
 _/boot/_++<machine-id>++_/_++<kernel-version>++_/initrd_,
 _/boot/efi/_++<machine-id>++_/_++<kernel-version>++_/initrd_,
 _/lib/modules/_++<kernel-version>++_/initrd_ or
-_/boot/initramfs-_++<kernel-version>++_.img_ and contains the kernel modules of
+_/boot/initrd.img-_++<kernel-version>++_ and contains the kernel modules of
 the currently active kernel with version _++<kernel-version>++_.
 
 If the initramfs image already exists, dracut will display an error message, and
--- a/man/lsinitrd.1.asc
+++ b/man/lsinitrd.1.asc
@@ -22,7 +22,7 @@
 _/boot/<machine-id>/<kernel-version>/initrd_,
 _/boot/efi/<machine-id>/<kernel-version>/initrd_,
 _/lib/modules/<kernel-version>/initrd_ or
-_/boot/initramfs-<kernel-version>.img_.
+_/boot/initrd.img-<kernel-version>_.
 
 OPTIONS
 -------
--- a/lsinitrd.sh
+++ b/lsinitrd.sh
@@ -134,8 +134,8 @@
         image="/lib/modules/${KERNEL_VERSION}/initrd"
     elif [[ -f /lib/modules/${KERNEL_VERSION}/initramfs.img ]]; then
         image="/lib/modules/${KERNEL_VERSION}/initramfs.img"
-    elif [[ -f /boot/initramfs-${KERNEL_VERSION}.img ]]; then
-        image="/boot/initramfs-${KERNEL_VERSION}.img"
+    elif [[ -f /boot/initrd.img-${KERNEL_VERSION} ]]; then
+        image="/boot/initrd.img-${KERNEL_VERSION}"
     elif [[ $MACHINE_ID ]] \
         && mountpoint -q /efi; then
         image="/efi/${MACHINE_ID}/${KERNEL_VERSION}/initrd"
--- a/dracut-initramfs-restore.sh
+++ b/dracut-initramfs-restore.sh
@@ -39,8 +39,8 @@
     IMG="/boot/efi/$MACHINE_ID/$KERNEL_VERSION/initrd"
 elif [[ -f /lib/modules/${KERNEL_VERSION}/initrd ]]; then
     IMG="/lib/modules/${KERNEL_VERSION}/initrd"
-elif [[ -f /boot/initramfs-${KERNEL_VERSION}.img ]]; then
-    IMG="/boot/initramfs-${KERNEL_VERSION}.img"
+elif [[ -f /boot/initrd.img-${KERNEL_VERSION} ]]; then
+    IMG="/boot/initrd.img-${KERNEL_VERSION}"
 elif mountpoint -q /efi; then
     IMG="/efi/$MACHINE_ID/$KERNEL_VERSION/initrd"
 elif mountpoint -q /boot/efi; then