Commit Graph

91 Commits

Author SHA1 Message Date
Joshua Boniface b34550543c Fix bug with matching decimals in detect: strings 2024-08-30 11:08:59 -04:00
Joshua Boniface 362c52e3e5 Add detect parser script (from pvc) and use it 2024-08-30 10:46:41 -04:00
Joshua Boniface 68a1aed132 Add nvme-cli and jq to installer system
They likely won't be needed yet, but just in case.
2024-08-30 09:34:42 -04:00
Joshua Boniface 845e6e3b83 Add proper support for NVMe root disks
Required for Dell BOSS SL10 cards which expose themselves as a
/dev/nvmeX device rather than a /dev/sdX device.
2024-05-23 11:05:08 -04:00
Joshua Boniface d52e59ea62 Include lsb-release in base packages
For whatever reason, on Debian 12, without lsb-release the
ansible_distribution_release variable is undefined, even though it
isn't. To work around this, just ensure we always have lsb-release
installed to provide a reliable OS version fact.
2024-03-06 16:43:43 -05:00
Joshua Boniface 3dcaace183 Move to ip link instead of vconfig 2024-03-01 13:24:56 -05:00
Joshua Boniface 24d7ffd0d0 Install correct GRUB packages 2023-09-05 10:38:01 -04:00
Joshua Boniface 01948e9597 Add timers to run steps 2023-09-01 15:43:25 -04:00
Joshua Boniface 2fdb3b4813 Add python-is-python3 to installer 2023-09-01 15:42:00 -04:00
Joshua Boniface 7433bc8372 Fix where network stop happens
This broke preseed config
2023-09-01 15:42:00 -04:00
Joshua Boniface e7c8e9da6b Add message during wait 2023-09-01 15:42:00 -04:00
Joshua Boniface 1ec7444c36 Make reboot forcible to avoid weird issues 2023-09-01 15:42:00 -04:00
Joshua Boniface 1ce4c3c791 Fix efivars mount 2023-09-01 15:42:00 -04:00
Joshua Boniface df4471c26c Fix bug with active TTYs 2023-09-01 15:42:00 -04:00
Joshua Boniface 443678dee0 Add missing echo 2023-09-01 15:42:00 -04:00
Joshua Boniface 6cff55e63b Add more improvements to install prompts 2023-09-01 15:42:00 -04:00
Joshua Boniface 268b8824df Better handle components for bookworm 2023-09-01 15:42:00 -04:00
Joshua Boniface 48622b1dff Improve menus for clarity 2023-09-01 15:42:00 -04:00
Joshua Boniface 48a35c8d60 Add bond support during initial network config 2023-09-01 15:42:00 -04:00
Joshua Boniface 12e316fd3e Improve messages and chroot finals 2023-09-01 15:42:00 -04:00
Joshua Boniface f047c79e54 Set discard on system disk if supported 2023-09-01 15:42:00 -04:00
Joshua Boniface 3fb6df84e1 Ensure python-is-python3 is installed on bullseye 2023-09-01 15:42:00 -04:00
Joshua Boniface 92eef048b2 Fix paths inside grub.cfg 2023-09-01 15:42:00 -04:00
Joshua Boniface 422ea1739f Fix bootloader configuration for live env 2023-09-01 15:42:00 -04:00
Joshua Boniface 364b1234f3 Fix bad variable replacement 2023-09-01 15:41:59 -04:00
Joshua Boniface 0bf509ca9c Fix incorrect variable reference 2023-09-01 15:41:59 -04:00
Joshua Boniface 6ba2666a8f Update default mirror to UWaterloo (Rogers outage) 2023-09-01 15:41:59 -04:00
Joshua Boniface 6bcfaae391 Remove extra final phase of boot checks 2023-09-01 15:41:59 -04:00
Joshua Boniface 6156cd305a Add bnxt_en to initramfs 2023-09-01 15:41:59 -04:00
Joshua Boniface cc545fba44 Fix missing initrd= option for liveboot 2023-09-01 15:41:59 -04:00
Joshua Boniface 87a3275daa Remove internal poweroff after hook completion 2023-09-01 15:41:59 -04:00
Joshua Boniface 79de677a96 Add support for cross-arch ISOs
Initial support for arm64 installer support, as well as supporting
building the amd64 files on arm64 (i.e. an RPi3/4)
2023-09-01 15:41:59 -04:00
Joshua Boniface c590411301 Add nicer output for detects 2023-09-01 15:41:59 -04:00
Joshua Boniface 0d32e27ea9 Modify detect match to 3%
This will handle corner cases of RAID devices that are a little smaller
than expected (300GB -> 293GB), which were a little outside the 2%
range, while still being close enough.
2023-09-01 15:41:59 -04:00
Joshua Boniface 98337295b1 Flip ID to end of detect string
This just seems to "flow" more for me.
2023-09-01 15:41:59 -04:00
Joshua Boniface ec23da72a7 Add delay during checkin script 2023-09-01 15:41:59 -04:00
Joshua Boniface cc68ce54b6 Replace block zeroing with wipefs
This is very time consuming and intensive on the disks and really
doesn't do anything, so use wipefs.
2023-09-01 15:41:59 -04:00
Joshua Boniface c7e8f0cd6a Fix weird spacing 2023-09-01 15:41:59 -04:00
Joshua Boniface dba6965294 Fix period finding and failures 2023-09-01 15:41:59 -04:00
Joshua Boniface 13e93b89d4 Add lsscsi to suppkglist 2023-09-01 15:41:59 -04:00
Joshua Boniface ab6e6b5c6a Adjust comment to reflect group_vars 2023-09-01 15:41:58 -04:00
Joshua Boniface e8aed11693 Handle target_disk detection strings
For preseed installs with pvcbootstrapd, implement "detect" strings,
which can be used instead of fixed block paths to determine the required
disk from a fixed set of information available to a human provisioning
the servers, or from Redfish.

The basic idea is thus:

  1. The user specifies some physical attributes of the disk, either
  manually in a detect string of the preseed configuration, or by a
  physical identifier that Redfish can identify.

  2. Redfish takes this and either passes it, or crafts a detect string
  itself based on its storage information, which is then passed to the
  installer preseed as the target_disk value.

  3. The installer uses the provided values along with the output of the
  "lsscsi" command to determine which block device to use for the system
  disk.

This supersedes and enhances the original "model-based" detection with
far greater reliability and the ability to specify specific indexes.
2023-09-01 15:41:58 -04:00
Joshua Boniface 05e567c667 Add lsscsi to installer 2023-09-01 15:41:58 -04:00
Joshua Boniface ab7662c6de Fix template for updated pvcbootstrapd 2023-09-01 15:41:58 -04:00
Joshua Boniface 36ffc2cebf Fix boot.ipxe name and add host-ipxe template 2023-09-01 15:41:58 -04:00
Joshua Boniface 5ebc1a76d0 Restandardize arguments to checkin 2023-09-01 15:41:58 -04:00
Joshua Boniface 8062f4bad8 Adjust name of checkin URI 2023-09-01 15:41:58 -04:00
Joshua Boniface 2622e2136f Adjust names of checking actions 2023-09-01 15:41:58 -04:00
Joshua Boniface 88696a7bba Simplify hook check and move rm task 2023-09-01 15:41:58 -04:00
Joshua Boniface 18ab16e86d Redirect cURL output to stderr 2023-09-01 15:41:58 -04:00