modules.d: get rid of "tr"
[platform/upstream/dracut.git] / modules.d / 95dasd / module-setup.sh
1 #!/bin/bash
2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
4
5 check() {
6     local _arch=$(uname -m)
7     [ "$_arch" = "s390" -o "$_arch" = "s390x" ] || return 1
8     return 0
9 }
10
11 depends() {
12     return 0
13 }
14
15 installkernel() {
16     instmods dasd_mod dasd_eckd_mod dasd_fba_mod dasd_diag_mod
17 }
18
19 install() {
20     inst_hook cmdline 30 "$moddir/parse-dasd.sh"
21     dracut_install dasdinfo dasdconf.sh normalize_dasd_arg
22     if [[ $hostonly ]]; then
23         inst /etc/dasd.conf
24     fi
25     inst_rules 56-dasd.rules
26     inst_rules 59-dasd.rules
27 }
28