95iscsi: add iscsiuio

install iscsiuio
start iscsiuio
stop iscsiuio before switching root
master
Harald Hoyer 2011-11-09 13:58:54 +01:00
parent ecf9496d17
commit 3fa9d4d717
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

[ -e /sys/module/bnx2i ] && killproc iscsiuio

View File

@ -40,6 +40,8 @@ modprobe crc32c 2>/dev/null

[ -e /tmp/root.info ] && . /tmp/root.info

[ -e /sys/module/bnx2i ] && iscsiuio

if getargbool 0 rd.iscsi.firmware -y iscsi_firmware ; then
if [ -n "${root%%block:*}" ]; then
# if root is not specified try to mount the whole iSCSI LUN

View File

@ -57,10 +57,12 @@ installkernel() {

install() {
dracut_install umount
dracut_install -o iscsiuio
inst iscsistart
inst hostname
inst iscsi-iname
inst_hook cmdline 90 "$moddir/parse-iscsiroot.sh"
inst_hook pre-pivot 90 "$moddir/cleanup-iscsi.sh"
inst "$moddir/iscsiroot" "/sbin/iscsiroot"
inst "$moddir/mount-lun.sh" "/bin/mount-lun.sh"
}