freebsd doesnt like umount -l
This commit is contained in:
@ -93,8 +93,7 @@ class ZfsAuto(CliBase):
|
|||||||
group.add_argument('--hold-format', metavar='FORMAT', default="zfs_autobackup:{}",
|
group.add_argument('--hold-format', metavar='FORMAT', default="zfs_autobackup:{}",
|
||||||
help='ZFS hold string format. Default: %(default)s')
|
help='ZFS hold string format. Default: %(default)s')
|
||||||
group.add_argument('--strip-path', metavar='N', default=0, type=int,
|
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 '
|
help='Number of directories to strip from target path.')
|
||||||
'SmartOS machines)')
|
|
||||||
|
|
||||||
group=parser.add_argument_group("Selection options")
|
group=parser.add_argument_group("Selection options")
|
||||||
group.add_argument('--ignore-replicated', action='store_true', help=argparse.SUPPRESS)
|
group.add_argument('--ignore-replicated', action='store_true', help=argparse.SUPPRESS)
|
||||||
|
|||||||
@ -1137,7 +1137,7 @@ class ZfsDataset:
|
|||||||
self.debug("Unmounting")
|
self.debug("Unmounting")
|
||||||
|
|
||||||
cmd = [
|
cmd = [
|
||||||
"umount", "-l", self.name
|
"umount", self.name
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user