From: | "Tom Wijsman (tomwij)" <tomwij@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-backup/rear/files: rear-1.15-add-support-for-gentoo-kernels.patch |
Date: | Sat, 26 Oct 2013 13:37:34 |
Message-Id: | 20131026133726.8D50520005@flycatcher.gentoo.org |
1 | tomwij 13/10/26 13:37:26 |
2 | |
3 | Added: rear-1.15-add-support-for-gentoo-kernels.patch |
4 | Log: |
5 | Revision bump, support Gentoo kernels; proxied commit for Timo Eissler (morlix), fixes bug #489456. |
6 | |
7 | (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-backup/rear/files/rear-1.15-add-support-for-gentoo-kernels.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/rear/files/rear-1.15-add-support-for-gentoo-kernels.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/rear/files/rear-1.15-add-support-for-gentoo-kernels.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: rear-1.15-add-support-for-gentoo-kernels.patch |
16 | =================================================================== |
17 | diff --git a/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh b/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh |
18 | index 6816f37..ec437e4 100644 |
19 | --- a/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh |
20 | +++ b/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh |
21 | @@ -50,6 +50,14 @@ if [ ! -s "$KERNEL_FILE" ]; then |
22 | else |
23 | Error "Could not find Arch kernel /boot/vmlinuz[-linux|26]" |
24 | fi |
25 | + elif [ -f /etc/gentoo-release ]; then |
26 | + if [ -f "/boot/kernel-genkernel-${REAL_MACHINE}-${KERNEL_VERSION}" ]; then |
27 | + KERNEL_FILE="/boot/kernel-genkernel-${REAL_MACHINE}-${KERNEL_VERSION}" |
28 | + elif [ -f "/boot/kernel-${KERNEL_VERSION}" ]; then |
29 | + KERNEL_FILE="/boot/kernel-${KERNEL_VERSION}" |
30 | + else |
31 | + Error "Could not find Gentoo kernel" |
32 | + fi |
33 | else |
34 | Error "Could not find a matching kernel in /boot !" |
35 | fi |