mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
fix(cros_make_image_bootable): need to mkdir first
The au directory doesn't exist. Make the directory first.
This commit is contained in:
parent
138e8eb715
commit
a924223b75
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user