]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
contrib: dracut: zfs-snapshot-bootfs: exit status fix
authorgregory-lee-bartholomew <gregory.lee.bartholomew@gmail.com>
Fri, 12 Aug 2022 21:28:15 +0000 (16:28 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 12 Aug 2022 21:31:51 +0000 (14:31 -0700)
commit979fd5a434ebc422c02dec5deddd485ce6127fc5
tree8b7564bed5026ecc8c187083e3a4772347972578
parent533779f5f2d91e8dc3fc8ac8184fc858d2e6428a
contrib: dracut: zfs-snapshot-bootfs: exit status fix

When the zfs-snapshot-bootfs service attempts to create a snapshot
that already exists, the exit status of the command is non-zero and
the service reports failed to the systemd service manager. This is a
common occurrence if bootfs.snapshot is left set on the kernel command
line and it should not be considered a failure.

This service was originally set to ignore this error by prefixing
the command with - on the ExecStart line, but the leading - appears
to have been dropped in #13359.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Gregory Bartholomew <gregory.lee.bartholomew@gmail.com>
Closes #13769
contrib/dracut/90zfs/zfs-snapshot-bootfs.service.in