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