summaryrefslogtreecommitdiff
path: root/ironic_python_agent/shell
diff options
context:
space:
mode:
authorSam Betts <sam@code-smash.net>2015-10-13 16:29:40 +0100
committerSam Betts <sam@code-smash.net>2016-01-29 12:07:19 +0000
commit632c7e6d31f00409a0e9268125496471c8ed3aa3 (patch)
tree2d5ebabf65afe3a681dd11f91e271fd700cbc550 /ironic_python_agent/shell
parent1e309468354eee7a3b1f7408d4486f798d0bbd2d (diff)
downloadironic-python-agent-632c7e6d31f00409a0e9268125496471c8ed3aa3.tar.gz
Add tinyipa to IPA imagebuild directory
TinyCoreLinux is a small 10mb base linux distribution which can easily be built into a ramdisk for PXE and ISO booting. This patch adds scripts and other required files to build a TinyCore based ramdisk which runs the Ironic Python Agent. Change-Id: I79fbec75de19b3d6feb19f87a3a0f662eae42bf3
Diffstat (limited to 'ironic_python_agent/shell')
-rwxr-xr-xironic_python_agent/shell/copy_configdrive_to_disk.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ironic_python_agent/shell/copy_configdrive_to_disk.sh b/ironic_python_agent/shell/copy_configdrive_to_disk.sh
index ee4ed703..ecd408e6 100755
--- a/ironic_python_agent/shell/copy_configdrive_to_disk.sh
+++ b/ironic_python_agent/shell/copy_configdrive_to_disk.sh
@@ -105,6 +105,9 @@ else
# Find partition we just created
# Dump all partitions, ignore empty ones, then get the last partition ID
ISO_PARTITION=`sfdisk --dump $DEVICE | grep -v ' 0,' | tail -n1 | awk '{print $1}'` || fail "finding ISO partition created on ${DEVICE}"
+
+ # Wait for udev to pick up the partition
+ udevadm settle --exit-if-exists=$ISO_PARTITION
fi
fi