|
Subject: Re: RFC: new ./INSTALL hints Newsgroups: gmane.comp.linux.drbd Date: 2003-12-24 12:14:23 GMT (4 years, 36 weeks, 5 days, 19 hours and 38 minutes ago) Lars Ellenberg wrote: > / 2003-12-17 12:03:07 -0500 > \ Adam Kosmin: >> Ok sounds good. Is KDIR mentioned anywhere in the documentation? > > we should add it to the ./README, I guess... > > someone out there who wants to review and improve the attached > ./INSTALL maybe? For Debian, IMHO it makes a lot of sense to make a .deb package: >/tmp/drbd-0.6.10# dpkg-buildpackage -us -uc -b creates drbd_*.deb, drbd-source_*.deb and kernel-patch-wup_*.deb. drbd-source_*.deb only contains /usr/src/linux/drbd.tar.gz, which must be unpacked and recompiled with the target kernel. >/tmp# dpkg -i drbd*deb # install them all >/tmp# cd /usr/src/linux ; tar xvzf drbd.tar.gz >/usr/src/linux# make menuconfig >/usr/src/linux# make-kpkg --bzimage --revision $FOO binary-arch modules_image creates kernel-image*deb, kernel-headers*deb, and drbd-module*deb, in my case (applied reiserfs data-logging patches and changed EXTRAVERSION in the Makefile to my initials, also used --revision jb1 on the make-kpkg command line :) >drbd-module-2.4.23-jb-gr+r_0.6.10-1+jb1_i386.deb >kernel-headers-2.4.23-jb-gr+r_jb1_i386.deb >kernel-image-2.4.23-jb-gr+r_jb1_i386.deb These can be installed on any computer now. $FOO can be anything you want, like '01' or 'jb1' (which I use). It's the kernel revision number for your build. IF you build later .deb packages with the same kernel version, you can use >dch -i 'added $foo patches/configure items/whatever' to update the Debian changelog in the kernel source directory and then just rebuild the kernel image. It will auto-replace the running kernel on installation. If you build another .deb with a different _version_, it will not replace the running kernel. See kernel-package documentation for that. Trust me, it's much cleaner and easier (also to upgrade) machines this way. Especially if you have several machines to upgrade, which is _always_ the case when running drbd, as that's the whole point. :) -- ciao - Jens Benecke ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click |
|
|