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