AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 18.116.19.29


Current Path : /usr/share/initramfs-tools/hooks/
Upload File :
Current File : //usr/share/initramfs-tools/hooks/iscsi

#!/bin/sh

PREREQ="udev"

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

if [ -r /etc/initramfs-tools/conf.d/open-iscsi ] ; then
	. /etc/initramfs-tools/conf.d/open-iscsi
fi

if [ x"$NO_ISCSI_IN_INITRAMFS" = x"yes" ] ; then
	exit 0
fi

# Hooks for loading iscsi bits into the initramfs
. /usr/share/initramfs-tools/hook-functions

copy_exec /sbin/iscsistart /sbin
cp /etc/iscsi/initiatorname.iscsi $DESTDIR/etc
if [ -r /etc/iscsi/iscsi.initramfs ] ; then
	cp /etc/iscsi/iscsi.initramfs $DESTDIR/etc
fi

for x in crc32c libcrc32c ib_iser iscsi_tcp libiscsi scsi_transport_iscsi iscsi_ibft; do
	manual_add_modules ${x}
done
for x in cxgb3i cxgb4i; do
	manual_add_modules ${x}
done