5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
18 # ex: ts=8 sw=4 sts=4 et filetype=sh
21 # do not add this module by default
27 echo readcdconf readfloppyconf netconfig
33 instmods = sr_mod mpt3sas raid_class scsi_transport_sas weak-updates/be2iscsi/be2iscsi ipmi_msghandler ipmi_devintf ipmi_si
36 install_python_module() {
40 derror "install_python_module takes 3 arguments"
45 for file in $(find $src -type f -printf "%P\n"); do
46 inst_simple $src/$file $dst/$file
51 dracut_install df du partprobe parted gunzip ip gzip fdisk find lsmod loadkeys iscsid iscsiadm sync qemu-img sgdisk python ipmitool
52 inst_hook pre-udev 48 "$moddir/load_modules.sh"
53 inst_hook pre-pivot 53 "$moddir/installmedia.sh"
54 inst_simple "$moddir/installmedia-lib.sh" /usr/lib/installmedia-lib.sh
55 cat "$moddir/python_files" | while read dep; do
57 *.so) inst_library $dep ;;
58 *.py) inst_simple $dep ;;
63 src_dir="/usr/lib/python2.7/site-packages"
64 dst_dir="/usr/lib/python2.7/site-packages"
65 inst_simple $src_dir/__init__.py $dst_dir/__init__.py
66 install_python_module $src_dir $dst_dir "hw_detector"