2014-10-15 18:10:04 +02:00
|
|
|
From 76396977ee19d97697226bda13de007030433854 Mon Sep 17 00:00:00 2001
|
|
|
|
From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crrodriguez@opensuse.org>
|
|
|
|
Date: Wed, 15 Oct 2014 17:50:36 +0200
|
|
|
|
Subject: Fix initramfs-$ver.img vs initrd-$ver in dracut-initramfs-restore.sh
|
|
|
|
|
|
|
|
dracut-shutdown.service invokes dracut-initramfs-restore script which
|
|
|
|
will never work in openSUSE because initrd images are named initrd not
|
|
|
|
initramfs.
|
|
|
|
---
|
|
|
|
dracut-initramfs-restore.sh | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
2015-06-30 14:59:59 +02:00
|
|
|
Index: dracut-042/dracut-initramfs-restore.sh
|
2015-03-31 16:12:12 +02:00
|
|
|
===================================================================
|
2015-06-30 14:59:59 +02:00
|
|
|
--- dracut-042.orig/dracut-initramfs-restore.sh 2015-06-11 17:39:47.000000000 +0200
|
|
|
|
+++ dracut-042/dracut-initramfs-restore.sh 2015-06-24 18:02:34.238788260 +0200
|
|
|
|
@@ -19,7 +19,7 @@ mount -o ro /boot &>/dev/null
|
2014-10-15 18:10:04 +02:00
|
|
|
if [[ $MACHINE_ID ]] && [[ -d /boot/${MACHINE_ID} || -L /boot/${MACHINE_ID} ]] ; then
|
|
|
|
IMG="/boot/${MACHINE_ID}/${KERNEL_VERSION}/initrd"
|
|
|
|
fi
|
|
|
|
-[[ -f $IMG ]] || IMG="/boot/initramfs-${KERNEL_VERSION}.img"
|
|
|
|
+[[ -f $IMG ]] || IMG="/boot/initrd-${KERNEL_VERSION}"
|
|
|
|
|
|
|
|
cd /run/initramfs
|
|
|
|
|