Ironic agent kernel should be owned by user building image
The initramfs file created by the ironic-agent element is owned by the user running disk-image-create; ensure that the other files created by the element are also owned by the user. Change-Id: I829db5b8e8bf1fc68face9cd2bda52d2a5ccdd4f Closes-Bug: 1593010
This commit is contained in:
parent
d9525cfee9
commit
7eb72c0874
@ -42,10 +42,11 @@ sudo find . -xdev \
|
|||||||
|
|
||||||
select_boot_kernel_initrd $TARGET_ROOT
|
select_boot_kernel_initrd $TARGET_ROOT
|
||||||
sudo cp $BOOTDIR/$KERNEL ${IMAGE_PATH}.kernel
|
sudo cp $BOOTDIR/$KERNEL ${IMAGE_PATH}.kernel
|
||||||
|
sudo chown $USER: ${IMAGE_PATH}.kernel
|
||||||
|
|
||||||
# TODO(lucasagomes): Create a hard link for the .vmlinuz file to keep
|
# TODO(lucasagomes): Create a hard link for the .vmlinuz file to keep
|
||||||
# it backward compatible. Remove it after it has been consistent and
|
# it backward compatible. Remove it after it has been consistent and
|
||||||
# documented in both places for at least one full OpenStack release cycle
|
# documented in both places for at least one full OpenStack release cycle
|
||||||
echo "WARNING: The kernel extension .vmlinuz has been deprecated. Please rely on the file with the extension .kernel instead."
|
echo "WARNING: The kernel extension .vmlinuz has been deprecated. Please rely on the file with the extension .kernel instead."
|
||||||
sudo rm -f ${IMAGE_PATH}.vmlinuz
|
sudo rm -f ${IMAGE_PATH}.vmlinuz
|
||||||
sudo ln ${IMAGE_PATH}.kernel ${IMAGE_PATH}.vmlinuz
|
ln ${IMAGE_PATH}.kernel ${IMAGE_PATH}.vmlinuz
|
||||||
|
Loading…
Reference in New Issue
Block a user