95iscsi: add iscsiuio
install iscsiuio start iscsiuio stop iscsiuio before switching rootmaster
parent
ecf9496d17
commit
3fa9d4d717
|
|
@ -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
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue