File: kernel-patch-evms.README.Debian

package info (click to toggle)
evms 2.5.2-1.sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 14,248 kB
  • ctags: 15,488
  • sloc: ansic: 201,340; perl: 12,421; sh: 4,262; makefile: 1,516; yacc: 316; sed: 16
file content (49 lines) | stat: -rw-r--r-- 1,649 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Building an EVMS-enabled kernel with kernel-package (recommended)
-----------------------------------------------------------------

1. Obtain kernel sources, either from a kernel-source-x.y.z package or
   elsewhere

2. Install the 'kernel-package' package

2. Unpack kernel sources (tar xjf /usr/src/kernel-source-x.y.z.tar.bz2)

3. cd kernel-source-x.y.z

4. Optionally, copy your existing kernel configuration, e.g. from
   /boot/config-x.y.z, to .config

5. Determine which patches apply to your kernel by reading
   http://evms.sourceforge.net/install/kernel.html

   Remember that current Debian kernels already include the
   device-mapper patch.  For example, for Debian 2.4.27 kernel
   sources, you might use:

   e.g., PATCHES="evms-dm-snapshot"

6. Run make-kpkg:

   PATCH_THE_KERNEL=AUTO make-kpkg --added-patches $PATCHES --append-to-version -evms kernel_image

   If you did not copy in an existing configuration, you will almost
   certainly want to use the --config option to make-kpkg (see
   make-kpkg(1)).

   If you copied the existing configuration from an initrd kernel, use
   the --initrd option to make-kpkg.

When make-kpkg is finished, you will have a kernel .deb in the parent
directory (where kernel-source-x.y.z is).

Refer to the kernel-package documentation for more information about
make-kpkg and its parameters.

Building an EVMS-enabled kernel by hand
---------------------------------------

If building without kernel-package, run the scripts in
/usr/src/kernel-patches/apply which correspond to the patches that you
want, then build as normal.

 -- Matt Zimmerman <mdz@debian.org>, Mon Jan  3 16:43:31 2005