Skip to content

Commit

Permalink
contrib: dracut: zfs-snapshot-bootfs: exit status fix
Browse files Browse the repository at this point in the history
Correct misplaced `-` is the original backport of openzfs#13769.

Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs#13769
  • Loading branch information
behlendorf committed Oct 20, 2022
1 parent 3b935cc commit 7795975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/dracut/90zfs/zfs-snapshot-bootfs.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ ConditionKernelCommandLine=bootfs.snapshot

[Service]
Type=oneshot
-ExecStart=/bin/sh -c '. /lib/dracut-zfs-lib.sh; decode_root_args || exit; [ "$root" = "zfs:AUTO" ] && root="$BOOTFS"; SNAPNAME="$(getarg bootfs.snapshot)"; exec @sbindir@/zfs snapshot "$root@${SNAPNAME:-%v}"'
ExecStart=-/bin/sh -c '. /lib/dracut-zfs-lib.sh; decode_root_args || exit; [ "$root" = "zfs:AUTO" ] && root="$BOOTFS"; SNAPNAME="$(getarg bootfs.snapshot)"; exec @sbindir@/zfs snapshot "$root@${SNAPNAME:-%v}"'
RemainAfterExit=yes

0 comments on commit 7795975

Please sign in to comment.