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