759 Commits
Author SHA1 Message Date
Mark D Horn 12468f4b85 isoutils: Remove extraneous double quotes
We were embedding extra double-quotes in the DOS labels
which was caught in the dosfstools 4.2 release.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.7.2
2021-02-03 17:14:53 -08:00
Mark D Horn 644ba63c8b isoutils: Reorder loadable modules
With the release of the 5.8 kernel, now isofs depends
upon cdrom; now cdrom must be loaded first.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.7.1
2020-10-09 09:42:25 -07:00
Mark D Horn 86128e62b0 test: add functional lvm test
Add a new test for LVM via advanced method.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.7.0
2020-06-24 09:08:59 -07:00
Mark D Horn 718634761e storage: Enable use of LVM for root file system
- Add suspend lvm state for offline volumes.
- Need to check all children for possible install targets.
- LVM always written in /etc/fstab with UUIDs
- Enable logging for all extra selected bundles.
- controller: Add clr-init with lvm usage

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-06-24 09:08:59 -07:00
Mark D Horn 46d525b565 storage: Use lsblk data for device path
Do not assume the path is /dev/<name>, use parsed path
from the output of lsblk.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-06-24 09:08:59 -07:00
Mark D Horn c004b7635d storage: make undetermined guid warning only
We were wrapping this in a error with trace back data
which puts a misleading message into the log file.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-06-24 09:08:59 -07:00
Mark D Horn f3b943149c controller: Fix hang bug for cbm fails
Fix issue where we failed and then returned where
we waited on the fail again.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-06-09 15:34:46 -05:00
Mark D Horn 384b1d8598 controller: Offline content ignore
Only show ignoring offline content if it exists and we
can not use it for this install.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-06-08 18:39:44 -05:00
Mark D Horn b8fde930aa iso: insmod earlier
Need to ensure the loadable kernel modules are loaded
BEFORE we start looking for hardware devices.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.6.1
2020-06-03 17:23:19 -07:00
Mark D Horn bd34c10970 iso: lengthen the timeout for finding the label
Move from 5 to 10 second for some systems with slow
hardware or emulators with low resources.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-06-03 17:23:19 -07:00
Mark D Horn bbce2bcd31 tests: Add new source for testing checksum
Created a new test program which will damage an ISO image
file to ensure that checksum validation is working properly.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.6.0
2020-05-28 21:37:31 -07:00
Karthik Prabhu Vinod 2ae625f8a9 initrd: Wait before booting
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-05-28 21:37:31 -07:00
Mark D Horn cab91e66fe iso: Find usable tty for output
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-28 21:37:31 -07:00
Karthik Prabhu Vinod 54457ddc6d ISO: Add integrity check
Adding Implant code
initramFs Add verify checksum using checkisomd5
BIOS/UEFI menu changes

Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-05-28 21:37:31 -07:00
Karthik Prabhu Vinod 9ec5a9574b README: Add a reference to clr-installer-dev bundle
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-05-27 12:40:07 -07:00
Mark D Horn 6e576e12ea model: Change ister Version to new type UintString
As of go 1.14 JSON decoder no longer accepts invalid numbers.
https://golang.org/doc/go1.14#encoding/json

Switch Version to a new type and add Unmarshaler to handle the
type which allows unsigned integer or 'latest' as valid values.

Dropped required coverage by 1% for model.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-21 16:43:35 -07:00
Mark D Horn 74de293b05 main: Make use of new VersionStringUint
Refactor to use new common function VersionStringUint.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-21 16:43:35 -07:00
Mark D Horn 4b9b5fc899 utils: Add new conversion function for Version
Also add new tests to increase coverage for utils.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-21 16:43:35 -07:00
Mark D Horn 5cbae184fe Add new test target for JSON to YAML
Add new target for testing the conversion of sample JSON
configuration files (ister) to the YAML.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-21 11:08:32 -07:00
Mark D Horn 13b15fab04 model: Centralize model initialization
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-21 11:08:32 -07:00
Mark D Horn 1a732b1d9f controller: Visual fail for copy content
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-19 13:16:19 -07:00
Mark D Horn e966377558 tui: gui: Check for useful offline content
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-19 13:16:19 -07:00
Mark D Horn 0d72ca36a5 Rework model conversion and latest check
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-19 13:16:19 -07:00
Mark D Horn 544c824a82 swupd: controller: check network if offline not usable
Adding testing coverage for Offline

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-19 13:16:19 -07:00
Mark D Horn 1a059fb08f controller: Use offline content by default
If the user has not explicitly requested 'latest' from the
command line, use version of the available offline content.
This is the default case for generated installer ISOs.

This functionality was broken by a previous fix.
Ref: 6dc97671d3

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-19 13:16:19 -07:00
Mark D Horn 7e3feecccf storage: Fix bug in swapfile checking
Fix logic bug as we can not check the swapfile size
when we are using the default of '0' for the partition
size to use the remaining free media space.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-14 16:34:18 -07:00
Mark D Horn d9acfe81de Update the top level Readme.md
Bring in-sync with the reference YAML file changes.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-14 13:04:42 -07:00
Mark D Horn af698b36c9 scripts: Add swupd installer post
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-14 13:04:42 -07:00
Mark D Horn 7b6c7cbca3 scripts: Add preferred legacy config
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-14 13:04:42 -07:00
Mark D Horn 360d89c875 scripts: Validation script for sample YAML
New script to run and verify that all sample YAML files
are functional.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-14 13:04:42 -07:00
Mark D Horn e988a9b210 scripts: Clean-up example YAML files
Prior to production using clr-installer for image generation
we created a parallel copy of their configs and scripts; this
is now redundant and frequently out of sync. Removing dups
and leaving a few examples and tests used by developers.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-14 13:04:42 -07:00
Mark D Horn 5c89f2f78e scripts: Update sample YAML files
Bring in-sync with production roots.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-14 13:04:42 -07:00
Mark D Horn 08be07cd3a scripts: Fix post install hooks
We should always use the yamlDir macro to find helper
scripts relative to the yaml configuration file used.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-14 13:04:42 -07:00
Mark D Horn 33bae246b2 storage: refactor check for ext file systems
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-13 14:32:44 -07:00
Mark D Horn 5f78e5cbd2 storage: Validation fix
Legacy mode checks for root can not be overridden with
skipping validation checks, as it isn't supported.

Enabled the use of ext4 for boot with undocumented
validation override.

Additional test cases.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-13 14:32:44 -07:00
Mark D Horn f1d355a1f3 storage: Fix legacy mode mkfs bug
When adding the required options to mkfs for legacy
mode on ext, an extra null was being added when
options field was empty in the YAML.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-11 10:55:25 -07:00
Mark D Horn 95125f0fe1 massinstall: Exit with error for validation fails
We were only printing an error message for media validation
errors, but exiting with status 0.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-11 10:54:42 -07:00
Mark D Horn 77f7194b39 tests: Fix YAML test files
Syntax error for the chroot post hook.

Update baseline to be in-sync with current production.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-08 15:03:31 -07:00
Mark D Horn 13b28fd349 yaml: switch to strict unmarshal
Enable Strict Unmarshal to ensure that we fail on unknown
tokens and duplicate tokens.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-08 15:03:31 -07:00
Mark D Horn 158fc80191 model: Fix case of allowInsecureHTTP
Documentation and standard convention requires allowInsecureHTTP
to be camel-case, but the code and documentation were both incorrect.
Some users will need to update the YAML files if they already
had the incorrect 'AllowInsecureHttp' which is now 'allowInsecureHTTP'.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-08 15:03:09 -07:00
Karthik Prabhu Vinod 81f54d463a Makefile: Add a dev-check-all target
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-05-07 17:11:38 -07:00
Mark D Horn c616293734 Makefile: Add retry to install linters
The latest linters installation URL does not always response
all of the time. Adding retry to not waste developer time
restarting the build for a linter install failure.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-07 17:04:41 -07:00
Mark D Horn 2c5af619ef boolset: switch PostArchive from bool to boolset
Change the PostArchive model type from bool to boolset to account
for default of true and state if the value was explicitly set.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-07 17:04:00 -07:00
Mark D Horn 4f2caf0e33 boolset: switch AutoUpdate from bool to boolset
Change the AutoUpdate model type from bool to boolset to account
for default of true and state if the value was explicitly set.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-07 17:04:00 -07:00
Mark D Horn db4749a388 boolset: Add new type boolean set type
This is useful for booleans which default to true.

Primarily needed for YAML files with booleans we
wish to default to true.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-07 17:04:00 -07:00
Mark D Horn 6dc97671d3 controller: Version overrides offline content cache
If the user forces a version to be installed, we ignore any
offline swupd content cache (standard for Installer ISOs) which
might be present.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-05-07 17:04:00 -07:00
Karthik Prabhu Vinod 914b97a77d storage: destructive tests
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-05-07 15:00:51 -07:00
Karthik Prabhu Vinod 692a0cb421 Add Locals Translations
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-05-07 15:00:51 -07:00
Karthik Prabhu Vinod 00a36e01a2 completion: Add completion for --force-destructive 2020-05-07 15:00:51 -07:00
Karthik Prabhu Vinod cc27345a72 storage: Add Misc capabilities
a.) By default, block destructive install affecting other disks
b.) Add way to report effects on other disks
c.) Add force-install option
d.) Add Cleanup progress
e.) Fixes

Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-05-07 15:00:51 -07:00