pmb.install.losetup: Remove debug print (MR 2430)

Looks like an unintended leftover from debugging.
This commit is contained in:
Newbyte 2024-10-13 20:02:29 +02:00
parent 0975d06437
commit a7e2592f1a
No known key found for this signature in database
GPG key ID: 8A700086A9FE41FD

View file

@ -100,7 +100,6 @@ def detach_all() -> None:
losetup = json.loads(losetup_output) losetup = json.loads(losetup_output)
work = get_context().config.work work = get_context().config.work
for loopdevice in losetup["loopdevices"]: for loopdevice in losetup["loopdevices"]:
print(loopdevice["back-file"])
if Path(loopdevice["back-file"]).is_relative_to(work): if Path(loopdevice["back-file"]).is_relative_to(work):
pmb.chroot.root(["kpartx", "-d", loopdevice["name"]], check=False) pmb.chroot.root(["kpartx", "-d", loopdevice["name"]], check=False)
pmb.chroot.root(["losetup", "-d", loopdevice["name"]]) pmb.chroot.root(["losetup", "-d", loopdevice["name"]])