#!/bin/bash

# Dracut is bash too, and it doesn't play nicely with our usual sets
# dib-lint: disable=setu sete setpipefail

check() {
    return 0
}

depends() {
    return 0
}

install() {
    set -x
    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
    inst /etc/ssh/sshd_config
}

installkernel() {
    instmods sg
    instmods ipmi_msghandler
    instmods ipmi_si
    instmods ipmi_devintf
}

#!/bin/bash

# Dracut is bash too, and it doesn't play nicely with our usual sets
# dib-lint: disable=setu sete setpipefail

check() {
    return 0
}

depends() {
    return 0
}

install() {
    inst /usr/bin/python
    while IFS='' read -r -d '' i; do
        inst "$i"
    done < <(find /usr/lib64/python2.7/ /usr/lib/python2.7/ -type f -print0)
    inst /etc/ssh/sshd_config
}

installkernel() {
    instmods sg
    instmods ipmi_msghandler
    instmods ipmi_si
    instmods ipmi_devintf
}

Fix dracut install errors building discovery ramdisk
Fix dracut install errors building discovery ramdisk

This was still using a broken method of finding the files to install.
Change it to use the deploy-targetcli element's method, which will
result in clean image builds without the slew of errors you get with
the old one.

Change-Id: I333256e8d574fb2ca7c82bffef3f54217c930312
