diskimage-builder/elements
Pino Toscano 626ca9ad47 Run udevadm settle after kpartx -l
it may happen that if the system where disk-image-create runs is busy,
then the kpartx -l run may leave a stale autodelete loop device.

This is because kpartx -l first adds a new loop device, then does the
listing and removes the loop device. The latter may not end before the
end of the kpartx run, leaving a loop device marked as autodelete.
Such kind of loop device will automatically delete itself, so the
 rm -r $WORKING
after
 sudo umount -f $WORKING/mnt
in the EXIT trap will fail because $WORKING does not exist anymore.

To prevent this situation, just ask udev to finish its operations,
properly removing the (temporary) loop device.

Change-Id: I12246f3dbe6b5669e698767682a5a142f803823b
2015-03-23 10:38:21 +01:00
..
apt-conf Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
apt-preferences Merge "Fix unbound variables in apt-{preferences,sources}" 2015-03-04 02:49:34 +00:00
apt-sources Merge "Fix unbound variables in apt-{preferences,sources}" 2015-03-04 02:49:34 +00:00
architecture-emulation-binaries Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
baremetal Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
base Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
cache-url Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
centos CentOS 6 Element 2015-03-03 23:09:45 -08:00
centos7 Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
centos-minimal Convert leftover unconditional set -x to DIB_DEBUG_TRACE 2015-03-11 14:58:14 +01:00
cleanup-kernel-initrd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
cloud-init-datasources Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
cloud-init-nocloud Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debian Convert leftover unconditional set -x to DIB_DEBUG_TRACE 2015-03-11 14:58:14 +01:00
debian-systemd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debian-upstart Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
deploy Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-baremetal Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-ironic Ironic: Deploy ramdisk to find the right root device 2015-03-13 14:09:40 +00:00
deploy-kexec Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
dhcp-all-interfaces Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dib-run-parts/root.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
disable-selinux/post-install.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dkms Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dpkg Merge "Allow disabling apt-get clean" 2015-03-17 18:20:11 +00:00
dracut-network Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dracut-ramdisk Allow elements to add drivers to dracut 2015-03-18 11:40:20 -05:00
element-manifest Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
enable-serial-console Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
epel Merge "Standarise tracing for scripts" 2015-03-04 00:38:44 +00:00
fedora Install Fedora kernel-modules pkg for iscsi_tcp 2015-03-07 21:45:33 -05:00
hwburnin Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
hwdiscovery Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
ilo Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
install-static Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
ironic-agent ironic-agent: exclude content of /tmp from initramfs 2015-03-10 19:03:04 +01:00
ironic-discoverd-ramdisk Fix incorrect package name dmidecoded to dmidecode 2015-03-11 01:04:37 +00:00
iso UEFI secure boot support for iso element. 2015-03-10 00:39:14 -07:00
local-config Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
manifests Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
mellanox Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
modprobe-blacklist Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
opensuse Merge "openSUSE update" 2015-03-20 09:34:15 +00:00
package-installs Fix check for installtype 2015-03-10 21:59:03 -04:00
pip-cache Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
pkg-map CentOS 6 Element 2015-03-03 23:09:45 -08:00
pypi Merge "Standarise tracing for scripts" 2015-03-04 00:38:44 +00:00
ramdisk Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
ramdisk-base Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
rax-nova-agent Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
redhat-common Run udevadm settle after kpartx -l 2015-03-23 10:38:21 +01:00
rhel Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
rhel7 Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
rhel-common Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
rpm-distro Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
select-boot-kernel-initrd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
selinux-permissive Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
serial-console Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
source-repositories Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
stable-interface-names Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
svc-map Merge "CentOS 6 Element" 2015-03-19 19:42:40 +00:00
uboot Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
ubuntu Set DIB_RELEASE in ubuntu element 2015-03-04 23:11:27 +00:00
ubuntu-core Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
ubuntu-minimal Merge "Flagging ubuntu-minimal as untested" 2015-03-20 09:00:16 +00:00
vm Merge "Add no_timer_check to vm grub cmdline" 2015-03-20 13:05:03 +00:00
yum Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
zypper Standarise tracing for scripts 2015-02-12 10:41:32 +11:00