diff --git a/pmb/netboot/__init__.py b/pmb/netboot/__init__.py index 2c27eb06..e8774ef3 100644 --- a/pmb/netboot/__init__.py +++ b/pmb/netboot/__init__.py @@ -18,8 +18,6 @@ def start_nbd_server(device: str, replace: bool, ip: str = "172.16.42.2", port: :param port: port of nbd server """ - pmb.chroot.apk.install(["nbd"], Chroot.native()) - chroot = Chroot.native() rootfs_path = Path("/mnt/pmbootstrap/netboot") / f"{device}.img" @@ -41,6 +39,8 @@ def start_nbd_server(device: str, replace: bool, ip: str = "172.16.42.2", port: f'serve --help" for more options.' ) + pmb.chroot.apk.install(["nbd"], chroot) + logging.info(f"Running nbd server for {device} on {ip} port {port}.") while True: