Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 50 lines (41 sloc) 1.23 KB
#!/bin/bash
# module-setup for coreos-installer
# called by dracut
check() {
require_binaries curl || return 1
return 0 # default to install this module
}
# called by dracut
depends() {
echo network url-lib
return 0
}
# called by dracut
install() {
# bin
inst_multiple /usr/bin/awk
inst_multiple /usr/bin/curl
inst_multiple /usr/bin/dc
inst_multiple /usr/bin/dd
inst_multiple /usr/bin/gpg2
inst_multiple /usr/bin/grep
inst_multiple /usr/bin/gzip
inst_multiple /usr/bin/lsblk
inst_multiple /usr/bin/ps
inst_multiple /usr/bin/sha256sum
inst_multiple /usr/bin/tail
inst_multiple /usr/bin/tr
inst_multiple /usr/bin/zcat
inst_multiple /usr/bin/xzcat
# sbin
inst_multiple /usr/sbin/blockdev
inst_multiple /usr/sbin/wipefs
inst_simple /usr/libexec/coreos-installer
inst_simple "$moddir/coreos-installer-generator" \
"$systemdutildir/system-generators/coreos-installer-generator"
inst_simple "$moddir/coreos-installer.target" \
"${systemdsystemunitdir}/coreos-installer.target"
inst_simple "$moddir/coreos-installer.service" \
"${systemdsystemunitdir}/coreos-installer.service"
inst_hook cmdline 90 "$moddir/parse-coreos.sh"
}
You can’t perform that action at this time.