iscsi tools: fix iscsiadm return value on failed login
[open-iscsi.git] / debian / README.Debian
blob98ebd2384215ca7228209f0ae681b95920e9eefe
1 linux-iscsi for Debian
2 -----------------------------------
4 The linux-iscsi package contains the userspace portion the Linux iSCSI project.
5 It has a dependency on the linux-iscsi-modules package, which needs to be built from the linux-iscsi-modules-source against the specific kernel version running
6 on your system.
8 Building
9 --------
10 Modules cannot be built against the kernel-headers alone.  You will need
11 to extract and configure your kernel tree, then use the make-kpkg command
12 (from the kernel-package package) to build a new kernel and modules.
13 See the make-kpkg man page, particularly the modules-image section.  The
14 following example shows how to build the linux-iscsi-modules package; just
15 substitute the appropriate version strings.  Follow these instructions 
16 (as root) in order to build the linux-iscsi-modules package for your kernel:
18 dpkg -i linux-iscsi-modules-source_5.0.0.0.3rc6-363_all.deb
19 cd /usr/src
20 rm -rf modules/linux-iscsi
21 tar jxpvf linux-iscsi-modules-source.tar.bz2
22 cd linux-2.6.11.11 (or your appropriate version)
23 make-kpkg --added-modules linux-iscsi modules-image
25 By default, make-kpkg will assume /usr/src/linux-iscsi-modules-source.tar.bz2 
26 has been extracted under /usr/src.  However, that also requires building as 
27 root.  If you want to do the build as a non-root user, you need to use the 
28 MODULE_LOC environment variable.  For example:
30 cd ~/builds
31 export MODULES_LOC=$PWD/modules
32 tar jxpvf /usr/src/linux-iscsi-modules-source.tar.bz2
33 cd ~/builds/linux-2.6.11.11 (or your appropriate version)
34 make-kpkg --added-modules linux-iscsi modules-image
36 Installing
37 ----------
39 Once you have built the linux-iscsi-modules package, you can install the
40 binaries:
42 dpkg -i linux-iscsi_5.0.0.0.3rc6-363_i386.deb linux-iscsi-modules-2.6.11.11_5.0.0.0.3rc6-363+10.00.Custom_i386.deb
44  -- Chad Tindel <chad.tindel@hp.com>, Mon, 30 May 2005 15:17:53 -0600