]> git.proxmox.com Git - mirror_zfs.git/commit
Fix systemd-import services
authorMichael Niewöhner <foss@mniewoehner.de>
Sun, 17 Mar 2019 21:47:15 +0000 (22:47 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 29 Mar 2019 22:17:23 +0000 (15:17 -0700)
commite03b25a56443c79a53327806fa4cc5a2b6acd70c
treee0439109b1d5afa4a79809d0309a490c66d23a38
parent3b2618927c666aaa7458bfe3a9cdd15d8e537864
Fix systemd-import services

On debian, systemd complains about missing /bin/awk because it
actually is located at /usr/bin/awk. It is not a good idea to
hardcode binary paths because different linux distros use different
paths. According to systemd's man page it is absolutely safe to
miss paths for binaries located at standard locations (/bin,
/sbin, /usr/bin, ...).

Further, replace this more or less complicated awk command by
grep.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Issue #8510
etc/systemd/system/zfs-import-cache.service.in
etc/systemd/system/zfs-import-scan.service.in