From 46507f8dbe048e0fc8dfa67c24b921c358e88f07 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Thu, 22 Dec 2022 01:33:30 +0100 Subject: [PATCH] binfmt: rename {,un}register() to binfmt_{,un}register() --- binfmt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binfmt.py b/binfmt.py index 018bb81..4e672e2 100644 --- a/binfmt.py +++ b/binfmt.py @@ -76,7 +76,7 @@ def binfmt_ensure_mounted(chroot: Optional[Chroot] = None): raise Exception(f'Failed mounting binfmt_misc to {binfmt_path}') -def register(arch: Arch, chroot: Optional[Chroot] = None): +def binfmt_register(arch: Arch, chroot: Optional[Chroot] = None): binfmt_path = '/proc/sys/fs/binfmt_misc' register_path = binfmt_path + '/register' is_arch_known(arch, True, 'register') @@ -107,7 +107,7 @@ def register(arch: Arch, chroot: Optional[Chroot] = None): raise Exception(f'Failed to register qemu-user for {arch} with binfmt_misc, {binfmt_path}/{info["name"]} not found') -def unregister(arch, chroot: Optional[Chroot] = None): +def binfmt_unregister(arch, chroot: Optional[Chroot] = None): is_arch_known(arch, True, 'unregister') qemu_arch = QEMU_ARCHES[arch] binfmt_ensure_mounted(chroot)