Use binary-deps.d for dracut ramdisks

Instead of hard-coding a list of binaries to include in the dracut
ramdisk, use the existing binary-deps.d functionality to provide a
list.  This will allow other ramdisks (such as discovery) to add
the binaries they need.

Change-Id: Ib7ffa15e08db1cc45e93a8f2a5c01369772c93ff
This commit is contained in:
Ben Nemec 2014-10-22 15:13:48 -05:00
parent 088f0eb7ac
commit bb8126e887
3 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,15 @@
tail
head
awk
ifconfig
cut
expr
route
ping
tgtd
tgtadm
nc
wget
curl
tftp
grep

View File

@ -51,7 +51,7 @@ cp "$TMP_MOUNT_PATH/init" "$MODULE_PATH/80deploy-ramdisk/init.sh"
# -o: Force omission of these dracut modules. Our scripts are written for bash,
# so dash is not desirable, and plymouth was causing some issues on Ubuntu.
dracut -N \
--install 'tail head awk ifconfig cut expr route ping tgtd tgtadm nc wget curl tftp grep' \
--install "$(cat /etc/dib_binary_deps)" \
--kernel-cmdline "rd.shell rd.debug rd.neednet=1 rd.driver.pre=ahci" \
--include "$TMP_MOUNT_PATH/init-func" /init-func \
--kver "${KERNEL_VERSION}" \