[Rear-users] SF.net SVN: rear:[698] trunk/usr/share/rear/pack/Linux-i386/30_copy_kernel. sh

jhoekx at users.sourceforge.net jhoekx at users.sourceforge.net
Wed Aug 10 10:24:37 CEST 2011


Revision: 698
          http://rear.svn.sourceforge.net/rear/?rev=698&view=rev
Author:   jhoekx
Date:     2011-08-10 08:24:36 +0000 (Wed, 10 Aug 2011)

Log Message:
-----------
Update kernel finding code for Arch.

Arch renamed the kernel with the move to kernel 3.0.

Modified Paths:
--------------
    trunk/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh

Modified: trunk/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh
===================================================================
--- trunk/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh	2011-08-06 16:05:00 UTC (rev 697)
+++ trunk/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh	2011-08-10 08:24:36 UTC (rev 698)
@@ -43,9 +43,13 @@
 		StopIfError "Could not find a matching kernel in /boot/efi/efi/debian !"
 		KERNEL_FILE="/boot/efi/efi/debian/vmlinuz-$KERNEL_VERSION"
 	elif [ -f /etc/arch-release ]; then
-		[ -f "/boot/vmlinuz26" ]
-		StopIfError "Could not find Arch kernel /boot/vmlinuz26"
-		KERNEL_FILE="/boot/vmlinuz26"
+		if [ -f "/boot/vmlinuz-linux" ] ; then
+			KERNEL_FILE="/boot/vmlinuz-linux"
+		elif [ -f "/boot/vmlinuz26" ] ; then
+			KERNEL_FILE="/boot/vmlinuz26"
+		else
+			Error "Could not find Arch kernel /boot/vmlinuz[-linux|26]"
+		fi
 	else
 		Error "Could not find a matching kernel in /boot !"
 	fi


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rear-users mailing list