flashbios: Do not expect the full path to the executable

The service file that starts the bios flasher was changed from specifying
the path /usr/sbin/<flasher> to just <flasher> to allow the service file
to find the binary on any directory specified by PATH and enable patching
on a read-only filesystem.

Remove the parsing of the path from the code, and change execl to execlp
which gets the path from the PATH env variable.

Resolves openbmc/openbmc#2271

Change-Id: I2b74e287e1e5db8feb96bfe51a0a73d999ba43c2
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
1 file changed