Merge "ironic-agent element to output a .kernel file"
This commit is contained in:
commit
626bf5d68e
@ -16,6 +16,15 @@ Beyond installing the ironic-python-agent, this element does the following:
|
|||||||
in order to support source based installation of ironic-python-agent and its
|
in order to support source based installation of ironic-python-agent and its
|
||||||
dependencies.
|
dependencies.
|
||||||
|
|
||||||
|
This element outputs three files:
|
||||||
|
|
||||||
|
- ``$IMAGE-NAME.initramfs``: The deploy ramdisk file containing the
|
||||||
|
ironic-python-agent (IPA) service.
|
||||||
|
- ``$IMAGE-NAME.kernel``: The kernel binary file.
|
||||||
|
- ``$IMAGE-NAME.vmlinuz``: A hard link pointing to the ``$IMAGE-NAME.kernel``
|
||||||
|
file; this is just a backward compatibility layer, please do not rely
|
||||||
|
on this file.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
The package based install currently only enables the service when using the
|
The package based install currently only enables the service when using the
|
||||||
systemd init system. This can easily be changed if there is an agent
|
systemd init system. This can easily be changed if there is an agent
|
||||||
|
@ -24,4 +24,10 @@ sudo find . -name "*.pyc" -or -name "*.pyo" -delete
|
|||||||
sudo find . -path ./sys -prune -o -path ./proc -prune -o -path './tmp/*' -prune -o -path './boot/*' -prune -o -path './root/*' -prune -o -path './usr/lib/locale/*' -prune -o -path './usr/share/doc/*' -prune -o -path './usr/share/man/*' -prune -o -path './usr/share/info/*' -prune -o -path './usr/share/licenses/*' -prune -o -path './usr/share/misc/*' -prune -o -print | sudo cpio -o -H newc | gzip > ${IMAGE_PATH}.initramfs
|
sudo find . -path ./sys -prune -o -path ./proc -prune -o -path './tmp/*' -prune -o -path './boot/*' -prune -o -path './root/*' -prune -o -path './usr/lib/locale/*' -prune -o -path './usr/share/doc/*' -prune -o -path './usr/share/man/*' -prune -o -path './usr/share/info/*' -prune -o -path './usr/share/licenses/*' -prune -o -path './usr/share/misc/*' -prune -o -print | sudo cpio -o -H newc | gzip > ${IMAGE_PATH}.initramfs
|
||||||
|
|
||||||
select_boot_kernel_initrd $TARGET_ROOT
|
select_boot_kernel_initrd $TARGET_ROOT
|
||||||
sudo cp $BOOTDIR/$KERNEL ${IMAGE_PATH}.vmlinuz
|
sudo cp $BOOTDIR/$KERNEL ${IMAGE_PATH}.kernel
|
||||||
|
|
||||||
|
# TODO(lucasagomes): Create a hard link for the .vmlinuz file to keep
|
||||||
|
# it backward compatible. Remove it after it has been consistent and
|
||||||
|
# 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."
|
||||||
|
sudo ln ${IMAGE_PATH}.kernel ${IMAGE_PATH}.vmlinuz
|
||||||
|
Loading…
Reference in New Issue
Block a user