Device or resource busy error while building image for UEFI through DIB

Bug #1563860 reported by Aayush Rajoria
6
This bug affects 1 person
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:~/diskimage-builder$ disk-image-create -a amd64 -o ubuntu-amd64-uefi.qcow2 vm dhcp-all-interfaces 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-datasources bootloader dhcp-all-interfaces package-installs dpkg dkms
Building in /tmp/image.8ewEfAgq

....

dib-run-parts Wed Mar 30 12:48:04 UTC 2016 97-dkms completed
----------------------- PROFILING -----------------------

Target: post-install.d

Script Seconds
--------------------------------------- ----------

00-package-installs 0.034
10-enable-init-scripts 0.003
95-package-uninstalls 0.036
97-dkms 0.055

--------------------- END PROFILING ---------------------
Unmount /tmp/image.8ewEfAgq/mnt/var/cache/apt/archives
Unmount /tmp/image.8ewEfAgq/mnt/tmp/ccache
Unmount /tmp/image.8ewEfAgq/mnt/sys
Unmount /tmp/image.8ewEfAgq/mnt/proc
Unmount /tmp/image.8ewEfAgq/mnt/dev/pts
Unmount /tmp/image.8ewEfAgq/mnt/dev
dib-run-parts Wed Mar 30 12:48:05 UTC 2016 Running /tmp/image.8ewEfAgq/hooks/block-device.d/10-partition
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_DEVICE=/dev/loop10p1
----------------------- PROFILING -----------------------

Target: block-device.d

Script Seconds
--------------------------------------- ----------

10-partition 0.099

--------------------- END PROFILING ---------------------

.....

Creating config file /etc/default/grub with new version
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-83-generic
Found initrd image: /boot/initrd.img-3.13.0-83-generic
done
Setting up grub-efi (2.02~beta2-9ubuntu1.7) ...
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.8ewEfAgq/mnt/tmp/in_target.d
Unmount /tmp/image.8ewEfAgq/mnt/sys
Unmount /tmp/image.8ewEfAgq/mnt/proc
Unmount /tmp/image.8ewEfAgq/mnt/dev/pts
Unmount /tmp/image.8ewEfAgq/mnt/dev
Unmount /tmp/image.8ewEfAgq/mnt
umount2: Device or resource busy
umount: /tmp/image.iAaljMBK: device is busy.
        (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.iAaljMBK': Device or resource busy

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)
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I was unable to reproduce with latest trunk

commit 95c874abb98b4f9b4dab085be1be6c5c1909656d
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"

Changed in diskimage-builder:
assignee: Aayush Rajoria (ayush7rajoria) → nobody
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for diskimage-builder because there has been no activity for 60 days.]

Changed in diskimage-builder:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.