[Lunar-commits] <moonbase-core> dracut: Renamed initramfs to match the kernel.

Peter de Ridder peter at lunar-linux.org
Sat May 4 09:00:17 CEST 2013


commit 9cb31811fd9f803c1f51201de8325e0158dcb067
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Thu, 25 Apr 2013 10:59:28 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/9cb31811fd9f803c1f51201de8325e0158dcb067

dracut: Renamed initramfs to match the kernel.
---
  kernel/dracut/plugin.d/bootloader-dracut.plugin | +2/-2     
  1 file changed, 2 insertions(+), 2 deletions(-)

--- a/kernel/dracut/plugin.d/bootloader-dracut.plugin
+++ b/kernel/dracut/plugin.d/bootloader-dracut.plugin
@@ -16,7 +16,7 @@ plugin_kernel_updatebootloader_dracut()
 
   debug_msg "plugin_kernel_updatebootloader_dracut ($@)"
 
-  KVERSION=`echo $1 | cut -d- -f1`
+  KVERSION="$1-$(arch)"
 
   # create an old copy of the previous initramfs
   if [ -f "/boot/initramfs-$KVERSION.img" ]; then
@@ -24,7 +24,7 @@ plugin_kernel_updatebootloader_dracut()
   fi
 
   # we can force dracut as we copied the old initramfs
-  dracut -f "/boot/initramfs-$KVERSION.img" "$KVERSION"
+  dracut -f "/boot/initramfs-$KVERSION.img" "$1"
 
   # right now we want to have it run all bootloaders?
   return 2




More information about the Lunar-commits mailing list