From a924223b75c75fce6ba430b5eb98a5a4b86f8542 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Sun, 21 Jul 2013 21:11:10 -0700 Subject: [PATCH] fix(cros_make_image_bootable): need to mkdir first The au directory doesn't exist. Make the directory first. --- bin/cros_make_image_bootable | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/cros_make_image_bootable b/bin/cros_make_image_bootable index 386ef38604..35e4800ab0 100755 --- a/bin/cros_make_image_bootable +++ b/bin/cros_make_image_bootable @@ -189,6 +189,7 @@ make_image_bootable() { # Install an auto update key on the root before sealing it off if [ ! -z "${FLAGS_au_key}" ]; then local key_location=${FLAGS_rootfs_mountpoint}"/usr/share/update_engine/" + sudo mkdir -p "${key_location}" sudo cp "${FLAGS_au_key}" "$key_location/update-payload-key.pub.pem" sudo chown root:root "$key_location/update-payload-key.pub.pem" sudo chmod 644 "$key_location/update-payload-key.pub.pem"