]>
Commit | Line | Data |
---|---|---|
95d2dabc HH |
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 | ||
8bcfd683 | 5 | # called by dracut |
95d2dabc | 6 | check() { |
29b10e65 HH |
7 | local _arch=$(uname -m) |
8 | [ "$_arch" = "s390" -o "$_arch" = "s390x" ] || return 1 | |
30e6e809 | 9 | require_binaries normalize_dasd_arg || return 1 |
95d2dabc HH |
10 | return 0 |
11 | } | |
12 | ||
8bcfd683 | 13 | # called by dracut |
95d2dabc | 14 | depends() { |
690905ce | 15 | echo "dasd_mod" |
95d2dabc HH |
16 | return 0 |
17 | } | |
18 | ||
8bcfd683 | 19 | # called by dracut |
95d2dabc HH |
20 | install() { |
21 | inst_hook cmdline 30 "$moddir/parse-dasd.sh" | |
af119460 | 22 | inst_multiple dasdinfo dasdconf.sh normalize_dasd_arg |
95d2dabc HH |
23 | if [[ $hostonly ]]; then |
24 | inst /etc/dasd.conf | |
25 | fi | |
26 | inst_rules 56-dasd.rules | |
27 | inst_rules 59-dasd.rules | |
28 | } | |
29 |