5cf148
#!/bin/bash
5cf148
5cf148
check() {
5cf148
    return 255
5cf148
}
5cf148
5cf148
depends() {
5cf148
    return 0
5cf148
}
5cf148
5cf148
install() {
5cf148
    mv -f "$initdir/init" "$initdir/init.dracut"
5cf148
    inst_script "$moddir/init-fadump.sh" /init
5cf148
    chmod a+x "$initdir/init"
5cf148
5cf148
    # Install required binaries for the init script (init-fadump.sh)
5cf148
    inst_multiple sh modprobe grep mkdir mount
5cf148
    if dracut_module_included "squash"; then
5cf148
        inst_multiple cp pivot_root umount
5cf148
    else
5cf148
        inst_multiple ls mv switch_root
5cf148
    fi
5cf148
}