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