And run them for a commit (needed to poke the go version in go.mod due
to a dependency update needing at least go 1.17).
Signed-off-by: William Douglas <william.douglas@intel.com>
initrd calls blkid a few times looking for CLR_ISO, so it can identify
the root device that was booted. On each retry, call blkid plain to show
everything that's been found -- this may help with debugging boot
failures.
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>