Skip to content

Commit

Permalink
use better Linux detection
Browse files Browse the repository at this point in the history
  • Loading branch information
whoschek committed Jul 28, 2024
1 parent e732422 commit afee53c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wbackup_zfs/wbackup_zfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,10 @@ def incremental_replication_steps_wrapper(self, origin_src_snapshots_with_guids:
guid, snapshot = line.split('\t', 1)
guids.append(guid)
input_snapshots.append(snapshot)
if not self.params.src_sudo and os.geteuid() != 0 and platform.system() == 'Linux':

if (not self.params.src_sudo and os.geteuid() != 0
and self.params.available_programs['src'].get('os', 'Linux') == 'Linux'
and not self.params.getenv_bool('no_force_convert_I_to_i', False)):
# If using 'zfs allow' delegation mechanism on Linux, force convert 'zfs send -I' to a series of
# 'zfs send -i' as a workaround for zfs bug https://github.com/openzfs/zfs/issues/16394
has_snapshot = None
Expand Down

0 comments on commit afee53c

Please sign in to comment.