Create a first controller flag during kickstart
This change updated kickstart to create a .first_controller flag. This flag will be checked by controller_config to skip IPSec config and enablement for the very first controller. IPSec is configured and enabled by ansible bootstrap for the first controller. Test Plan: PASS: Install a AIO-DX system, verify the .first_controller file flag is created for the first controller during kickstart, but not for the other controller. PASS: Verify that IPSec config and enablement is skipped for first controller and IPSec is configured and enabled for the second controller. Story: 2010940 Task: 49547 Change-Id: Iea78885483a358dc3d8a296312c0a40c431b7ea5 Signed-off-by: Andy Ning <andy.ning@windriver.com>
This commit is contained in:
parent
19346c232a
commit
4af50a10bd
@ -3218,6 +3218,12 @@ log_lvm_conf "SysRoot Updated" ${IMAGE_ROOTFS}/etc/lvm/lvm.conf
|
|||||||
# Create first_boot flag
|
# Create first_boot flag
|
||||||
touch ${IMAGE_ROOTFS}/etc/platform/.first_boot
|
touch ${IMAGE_ROOTFS}/etc/platform/.first_boot
|
||||||
|
|
||||||
|
# Create first controller flag
|
||||||
|
$(is_system_node_install)
|
||||||
|
if [ $? -ne 0 ] ; then
|
||||||
|
touch ${IMAGE_ROOTFS}/etc/platform/.first_controller
|
||||||
|
fi
|
||||||
|
|
||||||
true
|
true
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
@ -3057,6 +3057,8 @@ rc=$?
|
|||||||
|
|
||||||
# Create first_boot flag
|
# Create first_boot flag
|
||||||
touch ${IMAGE_ROOTFS}/etc/platform/.first_boot
|
touch ${IMAGE_ROOTFS}/etc/platform/.first_boot
|
||||||
|
# Create first controller flag
|
||||||
|
touch ${IMAGE_ROOTFS}/etc/platform/.first_controller
|
||||||
|
|
||||||
true
|
true
|
||||||
%end
|
%end
|
||||||
|
Loading…
Reference in New Issue
Block a user