On 2/28/08, Mike Christie <[EMAIL PROTECTED]> wrote: > Andrew Moise wrote: > > Okay, excellent. If you want a more proper doc snippet (with exact > > commands and whatnot), say the word and I'll write one up. > > Yeah, please do. I know very little about debian (just that apt is > pretty cool).
Okay, patch is attached. I wound up doing some things differently than I mentioned -- the trouble with KERNEL_TARGET turned out to just be because I hadn't installed the needed headers, and I added the dpkg-divert script as a Makefile target instead of a snippet of code in the docs that people have to cut and paste. I also mentioned the ib_iser situation (which I hope I described accurately). Anyway, let me know if this looks okay for you. Cheers! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to firstname.lastname@example.org To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/open-iscsi -~----------~----~----~----~------~----~------~--~---
diff -ur open-iscsi-2.0-868-rc1.orig/kernel/Makefile open-iscsi-2.0-868-rc1/kernel/Makefile --- open-iscsi-2.0-868-rc1.orig/kernel/Makefile 2008-02-21 16:57:26.000000000 -0500 +++ open-iscsi-2.0-868-rc1/kernel/Makefile 2008-03-02 13:22:56.000000000 -0500 @@ -156,4 +156,9 @@ install_kernel: $(ko) $(KBUILD_BASE) modules_install INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) +dpkg_divert: + for module in $(ko) ; do \ + dpkg-divert --rename /lib/modules/$(KERNELRELEASE)/$(INSTALL_MOD_DIR)/$$module ; \ + done + # vim: ft=make tw=72 sw=4 ts=4: diff -ur open-iscsi-2.0-868-rc1.orig/README open-iscsi-2.0-868-rc1/README --- open-iscsi-2.0-868-rc1.orig/README 2008-02-21 16:57:26.000000000 -0500 +++ open-iscsi-2.0-868-rc1/README 2008-03-02 13:25:08.000000000 -0500 @@ -101,16 +101,26 @@ where <config> is the kernel configuration to use (eg. 'smp'). -If you choose to install the Debian packages instead of building from source, -please read the file /usr/share/doc/linux-iscsi/README.debian for information -on how to build kernel modules against your specific kernel. - For Red Hat/Fedora and Debian distributions open-iscsi can be installed by typing "make install". This will copy iscsid and iscsiadm to /usr/sbin, the init script to /etc/init.d, and the kernel modules: iscsi_tcp.ko, libiscsi.ko and scsi_transport_iscsi to /lib/modules/`uname -r`/kernel/drivers/scsi/ overwriting existing iscsi modules. +For Debian, be sure to install the linux-headers package that +corresponds to your kernel in order to compile the kernel modules +('aptitude install linux-headers-`uname -r`'). You may also wish to +run 'make -C kernel/ dpkg_divert' before installing kernel modules if +you run a Debian-provided kernel. This will use dpkg-divert(8) to +move the packaged kernel modules out of the way, and ensure that +future kernel upgrades will not overwrite them. + +Also, please be aware that the compatibility patches that enable these +iscsi modules to run on kernels older than 2.6.25 will not update the +ib_iser module; you may get warnings related to mismatched symbols on +this driver, in which case you'll be unable to load ib_iser and +open-iscsi simultaneously. + 4. Open-iSCSI daemon ====================