summaryrefslogtreecommitdiff
path: root/sys-kernel/dracut/files/044-0004-redcore-change-default-initramfs-name.patch
blob: 1551ed35a5826ffa45ea8569d1cf10416659511b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -Nur a/dracut.sh b/dracut.sh
--- a/dracut.sh	2015-11-25 13:22:28.000000000 +0000
+++ b/dracut.sh	2016-11-24 00:24:59.601507598 +0000
@@ -613,6 +613,7 @@
 
 if ! [[ $kernel ]]; then
     kernel=$(uname -r)
+    kernelarch=$(uname -r)
 fi
 
 if [[ $kernel ]]; then
@@ -627,7 +628,7 @@
     if [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then
         outfile="/boot/${MACHINE_ID}/$kernel/initrd"
     else
-        outfile="/boot/initramfs-$kernel.img"
+        outfile="/boot/initramfs-genkernel-$kernelarch-$kernel.img"
     fi
 fi