File module-setup.sh of Package amd-dgpu-pwr

#!/bin/bash
# dracut “module‑setup” script – runs on the *build* host

check() {            # build this module unconditionally
    return 0
}

depends() {          # need nothing else beyond what the generic initrd brings
    return 0
}

install() {
    # put the runtime script into the image
    inst_script "$moddir/amdgpu-power.sh" \
                /lib/dracut/hooks/pre-pivot/90-amdgpu-power.sh
    # we need modprobe and sleep; they are in the generic image already
}
openSUSE Build Service is sponsored by