diskimage-builder/elements/ramdisk/cleanup.d/99-extract-ramdisk-files
James Slagle 6b220a044f Default name for ramdisks to image.
If you build a ramdisk with ramdisk-image-create and forget to specify
-o, you end up with a .kernel and .initramfs file as the image outputs.
This commit defaults the $IMAGE_NAME value to image so you'd end up
with image.kernel and image.initramfs

Change-Id: I10f3ac9ad178c32119523e4da930070e3ade4f73
2013-12-04 15:31:46 -05:00

10 lines
165 B
Bash
Executable File

#!/bin/bash
set -e
set -x
IMAGE_NAME=${IMAGE_NAME:-'image'}
cp $TMP_MOUNT_PATH/tmp/ramdisk $IMAGE_NAME.initramfs
cp $TMP_MOUNT_PATH/tmp/kernel $IMAGE_NAME.kernel