Device or resource busy error while building image for UEFI through DIB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
Expired
|
Medium
|
Unassigned |
Bug Description
I have attached 32 loop devices and exhausted 9 of them , while building image through DIB element getting error Device or resource busy. Attached are the logs:
(uefi) stack@ubuntu:
Building elements: base vm dhcp-all-interfaces ubuntu
Expanded element dependencies to: dib-python install-types dib-run-parts vm manifests dib-init-system cache-url pkg-map base ubuntu cloud-init-
Building in /tmp/image.8ewEfAgq
....
dib-run-parts Wed Mar 30 12:48:04 UTC 2016 97-dkms completed
-------
Target: post-install.d
Script Seconds
-------
00-package-installs 0.034
10-enable-
95-package-
97-dkms 0.055
-------
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
dib-run-parts Wed Mar 30 12:48:05 UTC 2016 Running /tmp/image.
dib-run-parts Wed Mar 30 12:48:05 UTC 2016 10-partition completed
mkfs.fat 3.0.26 (2014-03-07)
unable to get drive geometry, using default 255/63
IMAGE_BLOCK_
-------
Target: block-device.d
Script Seconds
-------
10-partition 0.099
-------
.....
Creating config file /etc/default/grub with new version
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
done
Setting up grub-efi (2.02~beta2-
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
+ mkdir -p /boot/efi
+ mount /dev/loop20p1 /boot/efi
mount: special device /dev/loop20p1 does not exist
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
umount2: Device or resource busy
umount: /tmp/image.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount2: Device or resource busy
rm: cannot remove '/tmp/image.
summary: |
- Device or resource busy error while building image through DIB + Device or resource busy error while building image for UEFI through DIB |
Changed in diskimage-builder: | |
assignee: | nobody → Aayush Rajoria (ayush7rajoria) |
I was unable to reproduce with latest trunk
commit 95c874abb98b4f9 b4dab085be1be6c 5c1909656d
Merge: 9a00bf1 eb99fe7
Author: Jenkins <email address hidden>
Date: Wed May 18 19:39:10 2016 +0000
Merge "Add dhcp-all- interfaces. target for syncing units"