668 Commits
Author SHA1 Message Date
Mark D Horn 8e20c46e9c vendor: Update to latest release vendor code
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.4.3
2020-03-30 16:43:07 -07:00
Mark D Horn 9c308f26a3 make: Fix the vendor update target
Need to ensure we download any updated vendor code
and pull the changes into our vendor path for check-in.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-30 16:43:07 -07:00
Mark D Horn 646db5ab0f tests: Add new test to build all DevOps Images
This is a good regression test to ensure that all of the previously
released DevOps images will still build correctly with the latest
clr-installer code.

Two new make targets.
check-all-images:
    Run a long time as each is built in parallel

check-all-images-screen:
    Run all the image builds using screen which can
    be detached and allowed to run in the background.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-30 13:07:39 -07:00
Mark D Horn 294c518911 kernel: Drop extra LTS kernels
We only want to offer the latest LTS kernel which is a
meta bundle around the official latest kernel. User can
manually switch to any available kernel after install.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-27 15:10:11 -07:00
Mark D Horn 636e4804fc model: refactor method name IsDesktopInstall
Renaming method to be more clear.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-27 15:07:10 -07:00
Mark D Horn e77a32f4c6 Disable media size validation in UI
Use the new --skip-validation-size flag to ignore the size
sanity minimums during the user interface installations.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-27 15:07:10 -07:00
Mark D Horn f6f51ffa9e storage: refactor logs and warnings
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-27 15:07:10 -07:00
Mark D Horn 9283a120fd Enable override for partition validation
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-27 15:07:10 -07:00
Mark D Horn 90b5e36769 massinstaller: Add partition checking
Ensure validation is done for both standard and
advanced partitioning methods.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-27 15:07:10 -07:00
Mark D Horn be9d9bc64e Update partitioning support in legacy mode
Fixes: #517

Enable the possibility of no /boot partition in legacy mode.
- add warning if no /boot and legacy
  Warn the user that installing in legacy mode without a /boot
  partition means the install will never boot in UEFI mode.
- Force off 64bit mode
  When an ext file system is used for the /boot content
  (no /boot partition, and booting legacy mode) we need to
  disable 64bit flag or the image file system not boot.
  https://wiki.syslinux.org/wiki/index.php?title=Filesystem#ext
- Blocked use of XFS due to partition table requirement to use MBR.
- Do not allow encryption of / w/o /boot

Refactor validation code for reuse by both standard and advanced
disk partitioning. Add new standard Desktop and Server wrapper
functions.

Move validation to common function, remove from Find Targets, and
remove redundant validation function.

Enable the skip size for advanced partitions.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-27 15:07:10 -07:00
Mark D Horn 30a7017e93 tui: Need to determine boot mode early
We need to know if we are legacy mode before we parse the disk
partition information as legacy mode trigger different checking.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-27 15:07:10 -07:00
Mark D Horn ef45a32849 args: model: New options for partition checks
Add command line arguments and YAML file configurations for settings
skipping partition size checks during validation.

Skip Validation All implies Skip Size.

Never write skip validation options to YAML

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-27 15:07:10 -07:00
Mark D Horn deb3bbfc3e storage: dead code clean-up
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-27 15:07:10 -07:00
Mark D Horn 79680a63fa telemetry: Added coverage
Add fail test for bad binary path.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-25 18:30:27 -07:00
Mark D Horn 9addbc449a telemetry: Prevent error when not present
We were attempting to run the telemetry command to opt out
on the target when the binary was not present.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-25 18:30:27 -07:00
Mark D Horn 9b1204f36c log: Fix formatting issues in output log file
Fixes several problems in the output of the log file.
- Escaping percent signs
- Wrong format for data type
- Unnecessary format strings

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-25 18:29:57 -07:00
Karthik Prabhu Vinod 8925d04ec0 Clean of storage code
1.) Move some code to test so that they are not part of executable
2.) Remove unused code

Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-03-24 16:13:15 -07:00
Mark D Horn 144f870e55 Non-zero exit status for error conditions
Fixes: #687

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-24 15:16:43 -07:00
Mark D Horn 264aced1c9 storage: lower coverage during refactor
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-24 15:16:21 -07:00
Mark D Horn b99ff9135a storage: Enable Advanced Media Partition for CLI
Fixes: #628

Allow the use of the Advanced Media Partition labels from the command
line interface if no targetMedia is found in the YAML file.
The primary use case for this feature is PXE booting for installation.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-24 15:16:21 -07:00
Karthik Prabhu Vinod 5244585e59 Fix missing telemetry spool dir
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-03-18 20:15:22 +00:00
Karthik Prabhu Vinod 69d9806262 Build: Make failing test break builds
make check should capture exit code of go test to fail make check if a
test fails

Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-03-18 20:15:22 +00:00
Karthik Prabhu Vinod 99b40ec1ac Fix Storage test
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-03-18 20:15:22 +00:00
Karthik Prabhu Vinod 57496cc494 Fix network test
This fixes the network test to use systemd-network or NetworkManager
service based on what is active

Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-03-18 20:15:22 +00:00
Karthik Prabhu Vinod 9b7a5b01b2 Args: Make --gui flag hidden in help
Fixes #683

Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-03-18 19:17:56 +00:00
Karthik Prabhu Vinod 7e13d082a3 updated code coverage
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-03-13 01:10:05 +00:00
Karthik Prabhu Vinod ada648b4df Making newEditField accept width,height for labelWarning
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-03-13 01:10:05 +00:00
Karthik Prabhu Vinod 086d3d030d Improve password checking
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-03-13 01:10:05 +00:00
Mark D Horn 02b30f1bd9 storage: f2fs uses lower case l for labels
Fixes: #681

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.4.2
2020-03-12 15:11:46 -07:00
Mark D Horn 35a93e48f6 conf: drop unused constant
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-10 18:54:06 -07:00
Mark D Horn 86311bed04 swupd: fix comments
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-10 13:29:40 -07:00
Mark D Horn ad8b17cc56 kernel: Add new lts2019 kernel option
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-09 09:53:06 -07:00
Mark D Horn b54dcfb3fb Add complete step to the task list
Add a final step that confirms for the user that the installation
has completed.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-04 10:45:51 -08:00
Mark D Horn 9bf7fd696e Fix to the makefile outside of git repo
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.4.1
2020-02-27 16:23:29 -08:00
Mark D Horn ec6d983c26 Add legacy BIOS warning
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-27 15:06:20 -08:00
Mark D Horn 52de0593c8 Remove EFI hard requirement
clr-boot-manager can now support booting in legacy mode on bare metal.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-27 15:06:20 -08:00
Mark D Horn 44335ee0cc controller: Make hooks indeterminate
It is unknown how long each shell command can take or there may
be only a single call to a long-running script so make this
indeterminate to output spinner progress.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-27 15:00:31 -08:00
Mark D Horn 7e277776a9 controller: Add post-image YAML hook
Fixes: #531

Add new hook to be called after image generation is completed.

Update base image test to use post-image hook

This is useful for image manipulation such as compression, format
modification, etc.
2020-02-27 15:00:31 -08:00
Mark D Horn f73d0d198e storage: ensure we read the partition table
A recent change in Clear Linux OS resulted in partprobe no longer
processing loop back devices by default. Adding --partscan to
losetup ensures we read the partition table changes.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-27 15:00:31 -08:00
ZVNexus 6272de6a21 Initial F2FS support for CLR Installer.
Signed-off-by: Alexander Koskovich <zvnexus@outlook.com>
2020-02-27 11:03:25 -08:00
Karthik Prabhu Vinod ccc97c99fa Implement GO Modules
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-02-26 00:51:57 +00:00
Mark D Horn dba50a7722 swupd: Fix URL which was broken
Fixes: #667

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-21 10:32:51 -08:00
puneetse 4700761e58 Remove unused have_vmx check from initrd_init
This check originally came from the compatibility-check script for
checking containers but isn't required for the clr-installer.
2.4.0
2020-02-19 11:17:10 -08:00
puneetse a4bf9679fa Update TelemetryAboutURL
Documentation has moved to https://docs.01.org/clearlinux making the current URL invalid.
2020-02-19 11:08:17 -08:00
Mark D Horn 8169fe5e7c controller: Enable networking in a chroot
Fixes: #649

When post-install hooks are run in a chroot, the network is
inherited from the host, but DNS is not configured.
This work-around temporarily copy's the hosts /etc/resolv.conf
to enable DNS in the chroot.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-14 12:08:18 -08:00
Leandro Dorileo 9ef3334c07 scripts: add extra image descriptors
These configurations are intended to two different cbm configurations with dedicated
boot partitions either vfat and ext4 formatted.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-02-13 16:22:45 -08:00
Karthik Prabhu Vinod 31797ecb54 model,log: Small extraneous files fixes
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-02-13 15:54:28 -08:00
Alexander Koskovich d3cdbc25a1 Typo in YAML scripts
Also capitalize/end with period.
2020-02-12 18:55:13 -08:00
Mark D Horn 7478c9e280 model: clean up generated YAML files
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-12 18:37:08 -08:00
Karthik Prabhu Vinod a5328b689b TUI Net: Add user bundles net-test Note
Fixes Issue: #635

The user used to mistakenly click on items in the additonal bundles
page having to wait long duration unecessarily if the network did not work.
This provides the user with a Note saying that selecting an additional
bundle requires a working internet connection

Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-02-11 11:20:55 -08:00