dracut-functions.sh: find_binary: path starting with variable
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Sun, 7 Oct 2012 13:29:03 +0000 (15:29 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 8 Oct 2012 07:46:19 +0000 (03:46 -0400)
commit7e0d508002c549ff4cd133d137c8b09ff8935705
tree69279a1dd48d1b172811ea7fd5ea9af9131e4c91
parent585b3b37c023a1c661452607b43d5a6be9035c90
dracut-functions.sh: find_binary: path starting with variable

Credits go to Alexander Tsoy <bugs+gentoo@puleglot.ru> who provided the
patch with following explanation:

  I get messages "Skipping program $env{DM_SBIN_PATH}/..." when
  generating initramfs. This happens because some udev rules contains
  variables in path to command:

  $ egrep -r 'IMPORT\{program\}=\"\$' /lib64/udev/rules.d/
  /lib64/udev/rules.d/10-dm.rules:ENV{DM_COOKIE}=="?*", IMPORT{program}="$env{DM_SBIN_PATH}/dmsetup udevflags $env{DM_COOKIE}"

  [...]

  $ sudo dracut -f "" 3.5.4-hardened-r1
  I: *** Including module: dm ***
  I: Skipping program $env{DM_SBIN_PATH}/dmsetup using in udev rule 10-dm.rules as it cannot be found
dracut-functions.sh