2013-01-23 17:28:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# module-setup.sh for anaconda
|
|
|
|
|
|
|
|
check() {
|
|
|
|
[[ $hostonly ]] && return 1
|
|
|
|
return 255 # this module is optional
|
|
|
|
}
|
|
|
|
|
|
|
|
depends() {
|
2015-09-18 01:56:09 +00:00
|
|
|
echo img-lib dmsquash-live
|
2013-01-23 17:28:19 +00:00
|
|
|
case "$(uname -m)" in
|
|
|
|
s390*) echo cms ;;
|
|
|
|
esac
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
2014-04-07 12:38:09 +00:00
|
|
|
# binaries we want in initramfs
|
|
|
|
dracut_install eject -o pigz
|
|
|
|
dracut_install depmod blkid
|
|
|
|
inst_binary /usr/libexec/anaconda/dd_list /bin/dd_list
|
|
|
|
inst_binary /usr/libexec/anaconda/dd_extract /bin/dd_extract
|
|
|
|
|
2013-01-23 17:28:19 +00:00
|
|
|
# anaconda
|
|
|
|
inst "$moddir/anaconda-lib.sh" "/lib/anaconda-lib.sh"
|
|
|
|
inst_hook cmdline 25 "$moddir/parse-anaconda-options.sh"
|
|
|
|
inst_hook cmdline 26 "$moddir/parse-anaconda-kickstart.sh"
|
|
|
|
inst_hook cmdline 27 "$moddir/parse-anaconda-repo.sh"
|
|
|
|
inst_hook cmdline 28 "$moddir/parse-anaconda-net.sh"
|
|
|
|
inst_hook pre-udev 30 "$moddir/anaconda-modprobe.sh"
|
2014-04-07 12:38:09 +00:00
|
|
|
inst_hook pre-trigger 50 "$moddir/repo-genrules.sh"
|
|
|
|
inst_hook pre-trigger 50 "$moddir/kickstart-genrules.sh"
|
|
|
|
inst_hook pre-trigger 50 "$moddir/updates-genrules.sh"
|
2013-01-23 17:28:19 +00:00
|
|
|
inst_hook initqueue/settled 00 "$moddir/anaconda-ks-sendheaders.sh"
|
2015-03-23 11:36:12 +00:00
|
|
|
inst_hook initqueue/online 00 "$moddir/anaconda-ifcfg.sh"
|
2013-01-23 17:28:19 +00:00
|
|
|
inst_hook initqueue/online 80 "$moddir/anaconda-netroot.sh"
|
|
|
|
inst "$moddir/anaconda-diskroot" "/sbin/anaconda-diskroot"
|
2014-04-07 12:38:09 +00:00
|
|
|
inst_hook pre-pivot 50 "$moddir/anaconda-copy-ks.sh"
|
|
|
|
inst_hook pre-pivot 50 "$moddir/anaconda-copy-cmdline.sh"
|
|
|
|
inst_hook pre-pivot 99 "$moddir/save-initramfs.sh"
|
|
|
|
inst_hook pre-shutdown 50 "$moddir/anaconda-pre-shutdown.sh"
|
2013-01-23 17:28:19 +00:00
|
|
|
# kickstart parsing, WOOOO
|
2014-04-07 12:38:09 +00:00
|
|
|
inst_hook initqueue/online 11 "$moddir/fetch-kickstart-net.sh"
|
2013-01-23 17:28:19 +00:00
|
|
|
inst "$moddir/fetch-kickstart-disk" "/sbin/fetch-kickstart-disk"
|
|
|
|
inst "$moddir/fetch-updates-disk" "/sbin/fetch-updates-disk"
|
|
|
|
inst "$moddir/parse-kickstart" "/sbin/parse-kickstart"
|
2014-04-07 12:38:09 +00:00
|
|
|
# Driver Update Disks
|
|
|
|
inst_hook cmdline 29 "$moddir/parse-anaconda-dd.sh"
|
2016-04-10 04:00:00 +00:00
|
|
|
inst_hook pre-trigger 55 "$moddir/driver-updates-genrules.sh"
|
2015-03-23 11:36:12 +00:00
|
|
|
inst_hook initqueue/online 20 "$moddir/fetch-driver-net.sh"
|
2014-04-07 12:38:09 +00:00
|
|
|
inst_hook pre-pivot 50 "$moddir/anaconda-depmod.sh"
|
2016-04-10 04:00:00 +00:00
|
|
|
inst "$moddir/driver_updates.py" "/bin/driver-updates"
|
2014-04-07 12:38:09 +00:00
|
|
|
inst_simple "$moddir/driver-updates@.service" "/etc/systemd/system/driver-updates@.service"
|
2015-03-23 11:36:12 +00:00
|
|
|
# rpm configuration file (needed by dd_extract)
|
|
|
|
inst "/usr/lib/rpm/rpmrc"
|
2013-01-23 17:28:19 +00:00
|
|
|
# python deps for parse-kickstart. DOUBLE WOOOO
|
2016-04-10 04:00:00 +00:00
|
|
|
PYTHONHASHSEED=42 $moddir/python-deps $moddir/parse-kickstart $moddir/driver_updates.py | while read dep; do
|
2013-01-23 17:28:19 +00:00
|
|
|
case "$dep" in
|
|
|
|
*.so) inst_library $dep ;;
|
|
|
|
*.py) inst_simple $dep ;;
|
|
|
|
*) inst $dep ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|