diff options
Diffstat (limited to '')
-rw-r--r-- | debian/patches/initrd-not-initramfs.patch | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/debian/patches/initrd-not-initramfs.patch b/debian/patches/initrd-not-initramfs.patch new file mode 100644 index 0000000..bcfbf39 --- /dev/null +++ b/debian/patches/initrd-not-initramfs.patch @@ -0,0 +1,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 |