# Pastebin v3NNVSUN 2024-09-24 19:00:17.316 | INFO diskimage_builder.block_device.utils [-] Calling [sudo losetup --sector-size 4096 --show -f /tmp/dib_image.yDAmW63h/image0.raw] 2024-09-24 19:00:17.329 | INFO diskimage_builder.block_device.level0.localloop [-] New block device [/dev/loop0] 2024-09-24 19:00:17.329 | INFO diskimage_builder.block_device.level1.partitioning [-] Creating partition on [image0] [/tmp/dib_image.yDAmW63h/image0.raw] 2024-09-24 19:00:17.329 | INFO diskimage_builder.block_device.level1.mbr [-] Create MBR disk partitioning object 2024-09-24 19:00:17.329 | INFO diskimage_builder.block_device.level1.mbr [-] Partition absolute [2048] relative [0] length [8293120] absolute end [8296448] 2024-09-24 19:00:17.329 | INFO diskimage_builder.block_device.level1.mbr [-] Write partition entry blockno [0] entry [0] start [2048] length [8293120] 2024-09-24 19:00:17.329 | INFO diskimage_builder.block_device.utils [-] Calling [sudo sync] 2024-09-24 19:00:17.366 | INFO diskimage_builder.block_device.utils [-] Calling [sudo kpartx -uvs /dev/loop0] 2024-09-24 19:00:17.381 | ERROR diskimage_builder.block_device.blockdevice [-] Create failed; rollback initiated 2024-09-24 19:00:17.381 | Traceback (most recent call last): 2024-09-24 19:00:17.381 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/block_device/blockdevice.py", line 421, in cmd_create 2024-09-24 19:00:17.381 | node.create() 2024-09-24 19:00:17.381 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/block_device/level1/partition.py", line 85, in create 2024-09-24 19:00:17.381 | self.partitioning.create() 2024-09-24 19:00:17.381 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/block_device/level1/partitioning.py", line 218, in create 2024-09-24 19:00:17.381 | exec_sudo(["kpartx", "-uvs", self.device_path]) 2024-09-24 19:00:17.381 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/block_device/utils.py", line 143, in exec_sudo 2024-09-24 19:00:17.381 | raise e 2024-09-24 19:00:17.381 | diskimage_builder.block_device.exception.BlockDeviceSetupException: exec_sudo failed: device-mapper: reload ioctl on loop0p1 (253:1) failed: Invalid argument 2024-09-24 19:00:17.381 | create/reload failed on loop0p1 2024-09-24 19:00:17.381 | 2024-09-24 19:00:17.381 | INFO diskimage_builder.block_device.utils [-] Calling [sudo dmsetup remove loop0p1] 2024-09-24 19:00:17.392 | WARNING diskimage_builder.block_device.utils [-] Removing device failed (1) 2024-09-24 19:00:17.392 | INFO diskimage_builder.block_device.level0.localloop [-] loopdev detach 2024-09-24 19:00:17.392 | INFO diskimage_builder.block_device.utils [-] Calling [sudo losetup -d /dev/loop0] 2024-09-24 19:00:17.435 | INFO diskimage_builder.block_device.level0.localloop [-] Remove image file [/tmp/dib_image.yDAmW63h/image0.raw] 2024-09-24 19:00:17.436 | ERROR diskimage_builder.block_device.blockdevice [-] Rollback complete, exiting 2024-09-24 19:00:17.436 | Traceback (most recent call last): 2024-09-24 19:00:17.436 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/lib/dib-block-device.py", line 7, in 2024-09-24 19:00:17.436 | sys.exit(main()) 2024-09-24 19:00:17.436 | ^^^^^^ 2024-09-24 19:00:17.436 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/block_device/cmd.py", line 120, in main 2024-09-24 19:00:17.436 | return bdc.main() 2024-09-24 19:00:17.436 | ^^^^^^^^^^ 2024-09-24 19:00:17.436 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/block_device/cmd.py", line 115, in main 2024-09-24 19:00:17.436 | self.args.func() 2024-09-24 19:00:17.436 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/block_device/cmd.py", line 36, in cmd_create 2024-09-24 19:00:17.436 | self.bd.cmd_create() 2024-09-24 19:00:17.436 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/block_device/blockdevice.py", line 421, in cmd_create 2024-09-24 19:00:17.436 | node.create() 2024-09-24 19:00:17.436 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/block_device/level1/partition.py", line 85, in create 2024-09-24 19:00:17.436 | self.partitioning.create() 2024-09-24 19:00:17.436 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/block_device/level1/partitioning.py", line 218, in create 2024-09-24 19:00:17.437 | exec_sudo(["kpartx", "-uvs", self.device_path]) 2024-09-24 19:00:17.437 | File "/home/jay/dev/diskimage-builder/venv/lib/python3.11/site-packages/diskimage_builder/block_device/utils.py", line 143, in exec_sudo 2024-09-24 19:00:17.437 | raise e 2024-09-24 19:00:17.437 | diskimage_builder.block_device.exception.BlockDeviceSetupException: exec_sudo failed: device-mapper: reload ioctl on loop0p1 (253:1) failed: Invalid argument 2024-09-24 19:00:17.437 | create/reload failed on loop0p1 2024-09-24 19:00:17.437 | 2024-09-24 19:00:17.465 | *** /tmp/dib_build.5eInvaEX/mnt is not a directory 2024-09-24 19:00:17.563 | INFO diskimage_builder.block_device.blockdevice [-] State already cleaned - no way to do anything here