Debian: Adjust temp fix for /etc/platform.conf

Now that kickstarts are enabled, adjust the early workaround generating
the contents of /etc/platform/platform.conf.

This needs to be fully removed after fixing the openstack-dashboard
package.

Test Plan:
PASS - Build ISO
PASS - Install ISO
PASS - Run Ansible bootstrap

Change-Id: Ie2152ed579b64504a66d14a44f6e04e4dd4ba895
Story: 2009964
Task: 45131
Signed-off-by: Robert Church <robert.church@windriver.com>
This commit is contained in:
Robert Church 2022-04-20 00:11:58 -04:00
parent 9c08f03a7a
commit 09fc80979d

View File

@ -54,14 +54,11 @@ rootfs-pre-scripts:
groupadd nobody
SCRIPT_ENDOF
- |-
# FIXME: Temporary - Centos kickstarts set initial view of this file
# FIXME: openstack-dashboard will not install without this due to
# FileNotFoundError: [Errno 2] No such file or directory: '/etc/platform/platform.conf'
# dpkg: error processing package openstack-dashboard (--configure):
mkdir -p -m 0775 $IMAGE_ROOTFS/etc/platform
cat << SCRIPT_ENDOF > $IMAGE_ROOTFS/etc/platform/platform.conf
nodetype=controller
subfunction=controller,worker
system_type=All-in-one
security_profile=standard
management_interface=lo
SCRIPT_ENDOF
rootfs-post-scripts:
- |-