HomeFreeBSD

contrib: dracut: zfs-snapshot-bootfs: exit status fix

Description

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

Details

Provenance
gregory-lee-bartholomew <gregory.lee.bartholomew@gmail.com>Authored on Aug 12 2022, 9:28 PM
GitHub <noreply@github.com>Committed on Aug 12 2022, 9:28 PM
Parents
rGe713b69e5194: arcstat: fix -p option
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGd22dd77c4d45: contrib: dracut: zfs-snapshot-bootfs: exit status fix (authored by gregory-lee-bartholomew <gregory.lee.bartholomew@gmail.com>).Aug 12 2022, 9:28 PM