c98a17222f
RHEL 7 does not ship tgtadm or tgtd so they cannot be used in the deploy ramdisk. This change separates the tgt-specific parts of the ramdisk into their own element, and adds a new one that supports targetcli instead. For now, the tgt implementation can only be used with traditional busybox ramdisks and the targetcli one can only be used with dracut. This is because dracut is primarily used for RHEL right now so it makes sense to keep the dependencies simple. If there is a future desire to mix and match the implementations that could be done, but it would require users to explicitly select between tgt and targetcli. Change-Id: I4f99c91016287e08d836095c2f2261de8b45abdc Co-Authored-By: James Slagle <jslagle@redhat.com>
28 lines
679 B
Bash
Executable file
28 lines
679 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Dracut is bash too, and it doesn't play nicely with our usual sets
|
|
# dib-lint: disable=setu sete setpipefail dibdebugtrace
|
|
|
|
check() {
|
|
return 0
|
|
}
|
|
|
|
depends() {
|
|
return 0
|
|
}
|
|
|
|
install() {
|
|
inst /bin/targetcli
|
|
inst "$moddir/targetcli-wrapper" /targetcli-wrapper
|
|
inst "$moddir/iscsi-func" /iscsi-func
|
|
# Install all of Python
|
|
# TODO(bnemec): At some point this will need to be extended to support
|
|
# Python 3, but for the moment we aren't using that anyway.
|
|
inst /usr/bin/python
|
|
for i in $(find /usr/lib64/python2.7/ -type f); do
|
|
inst $i
|
|
done
|
|
for i in $(find /usr/lib/python2.7/ -type f); do
|
|
inst $i
|
|
done
|
|
}
|