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
|