diskimage-builder/elements
Pino Toscano f35aace69f Use shorter temporary file names for kpartx
The loopback handling in the Linux kernel limits the filenames of
files associated to loopback devices, see also linux/loop.h.
This is reflected also on userspace, as kpartx will silently do nothing
(exiting with 0) when requesting to remove a filename longer than 64
characters, as that name will obviously not match the truncated
filename. The result of this is that, when extracting qcow2 images for
the first time, if the qcow2 filename is long enough then the loopback
device will not be removed, remaining as stale in the host.

As a workaround, use a temporary file name when convering a qcow2 image
to raw, instead of using the base name of the qcow2 file.
While this still will not fix the issue when manually using a long
temporary directory (e.g. TMP_DIR=/very/long/etc...), at least should
avoid it in other cases.

Change-Id: Ibf46cd313a9d89412c0e1068fa0993be6c5a29db
2015-04-21 10:36:33 +02: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 Improved apt-sources README 2015-04-07 23:05:38 +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 Update packages earlier 2015-04-13 21:50:10 +00: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
centos-minimal Convert leftover unconditional set -x to DIB_DEBUG_TRACE 2015-03-11 14:58:14 +01:00
centos7 Standarise tracing for scripts 2015-02-12 10:41:32 +11: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 Merge "Report status of boot loader installation to Ironic" 2015-04-02 13:07:40 +00:00
deploy-kexec Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-targetcli No markdown docs for elements 2015-04-02 23:55:19 +00:00
deploy-tgtadm No markdown docs for elements 2015-04-02 23:55:19 +00:00
dhcp-all-interfaces Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dib-init-system Split dib-init-system into its own element 2015-03-25 13:28:38 -04: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 Refactor deploy ramdisk to allow use of targetcli 2015-03-18 11:42:00 -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 Switch default Fedora image to F21 2015-04-10 16:22:18 +01: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 openSUSE update 2015-04-14 21:53:38 +02:00
package-installs Update packages earlier 2015-04-13 21:50:10 +00: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 Refactor deploy ramdisk to allow use of targetcli 2015-03-18 11:42:00 -05:00
ramdisk-base Refactor deploy ramdisk to allow use of targetcli 2015-03-18 11:42:00 -05:00
rax-nova-agent Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
redhat-common Use shorter temporary file names for kpartx 2015-04-21 10:36:33 +02:00
rhel Use shorter temporary file names for kpartx 2015-04-21 10:36:33 +02:00
rhel-common Do not export REG_HALT_UNREGISTER between hook scripts 2015-04-08 09:28:47 +02:00
rhel7 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 Run svc-map tests 2015-03-29 04:11:41 +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 Use shorter temporary file names for kpartx 2015-04-21 10:36:33 +02: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