From 072fee1a748e2814331146a3ed0f03c1ec47610e Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Wed, 14 May 2014 04:25:05 +1200 Subject: [PATCH] Ensure we can read the kernel out. If the kernel is restricted read (as a security measure) we may not be able to read it without chmodding it. Change-Id: Ib577705c27d8c351288334de03a7848cf49f2de9 --- elements/ramdisk/cleanup.d/99-extract-ramdisk-files | 1 + 1 file changed, 1 insertion(+) diff --git a/elements/ramdisk/cleanup.d/99-extract-ramdisk-files b/elements/ramdisk/cleanup.d/99-extract-ramdisk-files index ed57f76ca..c03291206 100755 --- a/elements/ramdisk/cleanup.d/99-extract-ramdisk-files +++ b/elements/ramdisk/cleanup.d/99-extract-ramdisk-files @@ -5,5 +5,6 @@ set -o pipefail IMAGE_NAME=${IMAGE_NAME:-'image'} +sudo chmod a+r $TMP_MOUNT_PATH/tmp/ramdisk $TMP_MOUNT_PATH/tmp/kernel cp $TMP_MOUNT_PATH/tmp/ramdisk $IMAGE_NAME.initramfs cp $TMP_MOUNT_PATH/tmp/kernel $IMAGE_NAME.kernel