On Tue, Nov 21, 2006 at 12:02:32PM +0000, Robin Bowes wrote:
If you want to build a new kernel RPM for testing this patch something along
the lines of the following should work.
1. Extract the patch file from mercurial
hg clone
http://xenbits.xensource.com/xen-unstable.hg
cd xen-unstable.hg
hg log --patch -r 0c0ef61de06b > ~/rpm/SOURCES/large-disks.patch
2. Grab the latest kernel src.rpm file & install it locally
rpm -ivh kernel-XXXXXX.src.rpm
cd ~/rpm/SPECS
3. Edit the kenrel.spec file, incrementing release tag,
Release: %{release}.1xen2tbtest
Add
Patch30000: large-disks.patch
And in the %setup section
%patch30000 -p1
4. Rebuild the Xen kernel for i686
rpmbuild --target i686 --define 'buildup 0' --define 'buildsmp 0'
--define 'buildkdump 0' -ba kernel-2.6.spec
..wait 30 minutes or so...
You should now have a shiny new kernel-xen RPM ready for install in Dom0/DomU
Regards,
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules:
http://search.cpan.org/~danberr/ -=|
|=- Projects:
http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|