summaryrefslogtreecommitdiff
blob: 608685418676a901aa083fdb1648951268a78585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh b/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh
index 6816f37..ec437e4 100644
--- a/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh
+++ b/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh
@@ -50,6 +50,14 @@ if [ ! -s "$KERNEL_FILE" ]; then
 		else
 			Error "Could not find Arch kernel /boot/vmlinuz[-linux|26]"
 		fi
+	elif [ -f /etc/gentoo-release ]; then
+		if [ -f "/boot/kernel-genkernel-${REAL_MACHINE}-${KERNEL_VERSION}" ]; then
+     		KERNEL_FILE="/boot/kernel-genkernel-${REAL_MACHINE}-${KERNEL_VERSION}"
+     	elif [ -f "/boot/kernel-${KERNEL_VERSION}" ]; then
+     		KERNEL_FILE="/boot/kernel-${KERNEL_VERSION}"
+		else
+     		Error "Could not find Gentoo kernel"
+		fi
 	else
 		Error "Could not find a matching kernel in /boot !"
 	fi