From 6b220a044f0b91da8bea6d2fc9f0588f67abf635 Mon Sep 17 00:00:00 2001 From: James Slagle Date: Wed, 4 Dec 2013 13:45:29 -0500 Subject: [PATCH] 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 --- elements/ramdisk/cleanup.d/99-extract-ramdisk-files | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elements/ramdisk/cleanup.d/99-extract-ramdisk-files b/elements/ramdisk/cleanup.d/99-extract-ramdisk-files index aa6de6208..85cfa1d1f 100755 --- a/elements/ramdisk/cleanup.d/99-extract-ramdisk-files +++ b/elements/ramdisk/cleanup.d/99-extract-ramdisk-files @@ -3,5 +3,7 @@ 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