metal/kickstart
Al Bailey 13cb098953 Generate the install_uuid only once during install
This code only affects Debian.

The post operations are run more than once while ostree
layers are installed.

instflux=0 - /var not on a dedicated fluxdata partition.
instflux=1 - /var is part of the two different sysroot
deployments.

As a result the platform.conf and install_uuid can end
up being different when we generate the uuid and update
the platform.conf for each post.

This will confuse the patching system which compares
both values.

This fix simply ensures that the generation only happens
once, by reusing the generated uuid.

Test Plan:
  Build / Install / Boot  Debian ISO.
  Verify the /etc/platform/platform.conf install_uuid
matches the install_uuid under the feeds directory.
  Reboot and select the grub 'rollback' menu item, and
verify those values still match.

Story: 2009969
Task: 45200
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Ic65136caec008aaceafa18a12c2090ca9124efbf
2022-05-04 14:12:18 +00:00
..
centos relocate /www to /var/www 2021-12-10 16:41:42 -05:00
debian debian: Add Debian packaging for platform-kickstarts 2022-03-24 23:46:42 +00:00
files Generate the install_uuid only once during install 2022-05-04 14:12:18 +00:00
opensuse relocate /www to /var/www 2021-12-10 16:41:42 -05:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:43 -07:00