metal/bsp-files/kickstarts
Kyle MacLeod 018d06ccec miniboot: Use release-specific prestage data, handle subcloud downgrade
This commit handles the relocation of ostree_repo prestaging data from
/opt/platform-backup to /opt/platform-backup/<release>. The miniboot.cfg
kickstart now looks for prestaged data in the release-specific location.

We also handle the backup partition name change across CentOS/Debian. In
the case of a downgrade the CentOS miniboot kickstart code is updated to
use the partition GUID rather than LABEL or PARTLABEL. The GUID is
constant across all releases and is therefore a more reliable indicator
of the backup partition.

Tech debt: Fix the arbitrary wait sleep calls used when configuring
VLAN addressing. Now uses the more efficient wait_for_interface
approach for the VLAN links.

Test Plan
PASS:
- Boot with prestaged data under /opt/platform-backup/<release>/
  Ensure boot/install successfully uses prestaged data.
- Boot into older release under prestaged /opt/platform-backup/21.12
    - Test moving from 22.12 -> 21.12 and 21.12 -> 22.12
    - Ensure backup partition is found using GUID approach.
    - Ensure boot/install successfully uses prestaged data.
- Boot into both current and older release with no prestaged data
    - Test moving from 22.12 -> 21.12 and 21.12 -> 22.12
    - Ensure boot/install is successful.
- Boot subcloud with bootstrap_vlan, ensure that the wait_for_interface
  calls properly wait until the link is up.

Story: 2010611
Task: 47943
Depends-On: https://review.opendev.org/c/starlingx/distcloud/+/880789

Change-Id: I381b60285e9bfc375f01f45b79174b71da7f0565
Signed-off-by: Kyle MacLeod <kyle.macleod@windriver.com>
2023-05-18 13:46:30 -04:00
..
functions.sh Delay time for boot to detect mpath disks 2022-05-27 20:16:59 +00:00
post_common.cfg Harden kickstarts as udev behavior can lead to random failures 2020-07-28 16:14:28 +00:00
post_kernel_aio_and_worker.cfg Engineer IRQ affinity to decouple applications from platform 2021-06-02 12:30:09 -04:00
post_kernel_controller.cfg Enable 'softdog.soft_panic' kernel config option 2020-10-18 16:39:30 +00:00
post_kernel_storage.cfg Enable 'softdog.soft_panic' kernel config option 2020-10-18 16:39:30 +00:00
post_lvm_no_pv_on_rootfs.cfg Change compute node to worker node personality 2018-12-13 13:08:48 -05:00
post_lvm_pv_on_rootfs.cfg StarlingX open source release updates 2018-05-31 07:36:43 -07:00
post_miniboot_controller.cfg miniboot: Use release-specific prestage data, handle subcloud downgrade 2023-05-18 13:46:30 -04:00
post_net_common.cfg Convert BOOTIF MAC to NIC name 2020-04-03 09:56:41 -07:00
post_net_controller.cfg relocate /pxeboot to /var/pxeboot 2022-08-02 12:59:44 +00:00
post_platform_conf_aio_lowlatency.cfg Change compute node to worker node personality 2018-12-13 13:08:48 -05:00
post_platform_conf_aio.cfg Change compute node to worker node personality 2018-12-13 13:08:48 -05:00
post_platform_conf_controller.cfg StarlingX open source release updates 2018-05-31 07:36:43 -07:00
post_platform_conf_storage.cfg Configurable Host HTTP/HTTPS Port Binding 2019-02-06 16:04:07 -06:00
post_platform_conf_worker_lowlatency.cfg Configurable Host HTTP/HTTPS Port Binding 2019-02-06 16:04:07 -06:00
post_platform_conf_worker.cfg Configurable Host HTTP/HTTPS Port Binding 2019-02-06 16:04:07 -06:00
post_prestaging.cfg Handle prestage partition create and cleanup when needed 2021-11-12 13:59:04 -05:00
post_pxeboot_controller.cfg Copying the package_checksums file to 2022-06-13 13:55:22 -04:00
post_system_aio.cfg Change compute node to worker node personality 2018-12-13 13:08:48 -05:00
post_usb_addon.cfg Drop copy of .cfg files from controller kickstarts 2020-04-27 22:50:10 -04:00
post_usb_controller.cfg Copying the package_checksums file to 2022-06-13 13:55:22 -04:00
post_yow_controller.cfg relocate /www to /var/www 2021-12-10 16:41:42 -05:00
pre_common_head.cfg Prestaging rootfs and bootfs customization with script provided 2022-04-25 21:34:04 +00:00
pre_disk_aio.cfg Merge "Handle prestage partition create and cleanup when needed" 2021-11-16 15:37:44 +00:00
pre_disk_controller.cfg Update platform-backup to use 30GB partition 2021-11-15 10:06:18 -06:00
pre_disk_setup_common.cfg Merge "kickstarts: add support for mpath device" 2022-05-24 14:23:09 +00:00
pre_disk_setup_tail.cfg Fix issues with controller node Anaconda hang 2020-07-30 14:20:33 +00:00
pre_disk_storage.cfg Harden kickstarts as udev behavior can lead to random failures 2020-07-28 16:14:28 +00:00
pre_disk_worker.cfg Harden kickstarts as udev behavior can lead to random failures 2020-07-28 16:14:28 +00:00
pre_net_common.cfg Add ntpd to installer, sync time from active controller during install 2018-06-27 15:48:41 -04:00
pre_pkglist_lowlatency.cfg Filter out kmod-bnxt_en{,-rt} as necessary 2022-03-16 12:13:28 -04:00
pre_pkglist_prestage.cfg Filter out kmod-bnxt_en{,-rt} as necessary 2022-03-16 12:13:28 -04:00
pre_pkglist.cfg Filter out kmod-bnxt_en{,-rt} as necessary 2022-03-16 12:13:28 -04:00
pre_prestaging_install_check.cfg Delete Platform Backup partition first when installing Prestage iso 2022-06-09 23:51:22 -04:00