mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-22 21:25:43 -05:00
binfmt: rename {,un}register() to binfmt_{,un}register()
This commit is contained in:
parent
0d866c6287
commit
46507f8dbe
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ def binfmt_ensure_mounted(chroot: Optional[Chroot] = None):
|
||||||
raise Exception(f'Failed mounting binfmt_misc to {binfmt_path}')
|
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'
|
binfmt_path = '/proc/sys/fs/binfmt_misc'
|
||||||
register_path = binfmt_path + '/register'
|
register_path = binfmt_path + '/register'
|
||||||
is_arch_known(arch, True, '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')
|
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')
|
is_arch_known(arch, True, 'unregister')
|
||||||
qemu_arch = QEMU_ARCHES[arch]
|
qemu_arch = QEMU_ARCHES[arch]
|
||||||
binfmt_ensure_mounted(chroot)
|
binfmt_ensure_mounted(chroot)
|
||||||
|
|
Loading…
Add table
Reference in a new issue