|
Harald Hoyer |
afa7aa |
From 791d80168994f4784569c8ea47b7bff554102f5e Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
afa7aa |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
afa7aa |
Date: Tue, 10 Oct 2017 10:30:44 +0200
|
|
Harald Hoyer |
afa7aa |
Subject: [PATCH] dracut.sh: if /boot/vmlinuz-$version exists use /boot/ as
|
|
Harald Hoyer |
afa7aa |
output dir
|
|
Harald Hoyer |
afa7aa |
|
|
Harald Hoyer |
afa7aa |
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1475565
|
|
Harald Hoyer |
afa7aa |
---
|
|
Harald Hoyer |
afa7aa |
dracut.sh | 4 +++-
|
|
Harald Hoyer |
afa7aa |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
afa7aa |
|
|
Harald Hoyer |
afa7aa |
diff --git a/dracut.sh b/dracut.sh
|
|
Harald Hoyer |
afa7aa |
index 5ad0f464..995d983e 100755
|
|
Harald Hoyer |
afa7aa |
--- a/dracut.sh
|
|
Harald Hoyer |
afa7aa |
+++ b/dracut.sh
|
|
Harald Hoyer |
afa7aa |
@@ -773,7 +773,9 @@ if ! [[ $outfile ]]; then
|
|
Harald Hoyer |
afa7aa |
mkdir -p "$efidir/Linux"
|
|
Harald Hoyer |
afa7aa |
outfile="$efidir/Linux/linux-$kernel${MACHINE_ID:+-${MACHINE_ID}}${BUILD_ID:+-${BUILD_ID}}.efi"
|
|
Harald Hoyer |
afa7aa |
else
|
|
Harald Hoyer |
afa7aa |
- if [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then
|
|
Harald Hoyer |
afa7aa |
+ if [[ -e "/boot/vmlinuz-$kernel" ]]; then
|
|
Harald Hoyer |
afa7aa |
+ outfile="/boot/initramfs-$kernel.img"
|
|
Harald Hoyer |
afa7aa |
+ elif [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then
|
|
Harald Hoyer |
afa7aa |
outfile="/boot/${MACHINE_ID}/$kernel/initrd"
|
|
Harald Hoyer |
afa7aa |
else
|
|
Harald Hoyer |
afa7aa |
outfile="/boot/initramfs-$kernel.img"
|
|
Harald Hoyer |
b3dfe7 |
|