freebsd doesnt like umount -l

This commit is contained in:
Edwin Eefting 2022-03-08 18:15:46 +01:00
parent 244509a006
commit 4873913fa8
2 changed files with 2 additions and 3 deletions

View File

@ -93,8 +93,7 @@ class ZfsAuto(CliBase):
group.add_argument('--hold-format', metavar='FORMAT', default="zfs_autobackup:{}",
help='ZFS hold string format. Default: %(default)s')
group.add_argument('--strip-path', metavar='N', default=0, type=int,
help='Number of directories to strip from target path (use 1 when cloning zones between 2 '
'SmartOS machines)')
help='Number of directories to strip from target path.')
group=parser.add_argument_group("Selection options")
group.add_argument('--ignore-replicated', action='store_true', help=argparse.SUPPRESS)

View File

@ -1137,7 +1137,7 @@ class ZfsDataset:
self.debug("Unmounting")
cmd = [
"umount", "-l", self.name
"umount", self.name
]