This unit will stall indefinitely prompting for a password (even for
root) if anything else is holding the console. Instead, let this take it
over.
Also, /dev/console is default, so we don't need to specify it here.
Retries should be handled later, if desired, via systemd's standard
mechanisms.
Also move reboot to ExecStartPost so it runs only if/after clr-installer
has *succeeded*.
Trying to avoid extra embedded bash calls -- use systemd's internal
conditions to check whether clri.descriptor is defined on the kernel
command line to decide whether to even run this unit.
ISO creation has been failing because 100M initrd and
the kernel have grown too large for the allocated space.
Eventually we will add this value to yaml config but for
now we will just bump it.
Several API changes from gotk3 v0.4.0 to v0.6.0
which was a required bump to support building under golang 1.16.x.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
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>
- 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>