24 Commits
Author SHA1 Message Date
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 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 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
Mark D Horn b1b702385e swapfile: Add new swap file size option
The size of the swapfile can be set in the YAML file
and overridden by the command line argument.

Update for usage of XiB or XB units.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-04-15 17:23:59 -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 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
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
ZVNexus 6272de6a21 Initial F2FS support for CLR Installer.
Signed-off-by: Alexander Koskovich <zvnexus@outlook.com>
2020-02-27 11:03:25 -08:00
Mark D Horn f65cd665ba ISO: Add metadata to ISO images
Add the publisher and the application/image type to the ISO.
- ApplicationId set to 'server' by default, 'desktop' if any
  bundles are included which contain the name 'desktop.
  - ApplicationId can be overridden via the YAML file
- Publisher only set if included in YAML file

Add new test coverage.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-05 16:51:06 -08:00
Karthik Prabhu Vinod a9775f6870 Typo fixes for scripts doc
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-01-21 15:14:04 -08:00
Mark D Horn b9970047f9 Allow skipping swupd configuration file copy
Fixes: #600

Only copy the swupd configuration files from the host to the target
by default when running the interactive installer (gui or tui).
Otherwise, observe the setting from the configuration YAML or the
command line (highest) argument.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-12-11 10:47:05 -08:00
John Akre 53db1a1fd9 swupd: Support skipping optional bundles
Optionally included bundles (also-add) can now be omitted from the
install target by passing the --swupd-skip-optional flag or by setting
the swupdSkipOptional field in the config file.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-11-04 09:06:25 -08:00
Mark D Horn e482042355 swupd: model: Allow format to be set in config
Fixes: #559

Allow the format to be set in the configuration YAML file
as well as on the command line.

Useful for mixes.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-10-08 14:09:00 -07:00
John Akre 0b73c2d45a Update to latest when version is 0
When the version field in the config file is set to 0, the latest
version will be installed instead of the host's version.

Fixes: #502

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-10-02 13:15:42 -07:00
Mark D Horn 2e3c5bf50b Support insecure updates over HTTP
Fixes: #478

Add new --allow-insecure-http flag to support the use of HTTP URLs.
This is needed to allow swupd to download content from http sites;
generally development mixes.

Also enable the use of the setting in both the TUI and GUI to allow
the user to set a swupd mirror which is HTTP.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-30 17:32:36 -07:00
John Akre bca9042ec3 docs: Document offline and targetBundles
Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
Mark D Horn 0983f1f95a locale: switch to swupd bundle glibc-locale
Updating the installer to use the preferred swupd bundle
glibc-locale instead of locale. Both have the same definition.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-11 16:26:09 -07:00
Mark D Horn 0d42c2d792 Update YAML Syntax for ISO files
Fixes: #501

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-11 13:23:48 -07:00
Joe Konno 12344a5641 InstallerYAMLSyntax: fix cmdline bug from example
The kernel-arguments example is missing a pair of quotes for the remove
field-- without the quotes, two removal entries are added to
cmdline-removal.d on installation: "console=ttyS0" and "115200n8".

The quotes ensure that a single cmdline-removal.d entry,
"console=ttyS0,115200n8", is generated at installation time on the
target.

Signed-off-by: Joe Konno <joe.konno@intel.com>
2019-07-23 14:50:18 -07:00
Mark D Horn 2f3399754f doc: YAML information update
Add details about using the rest of the free space.
Correct typo and spelling errors.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-06-05 16:29:00 -05:00
Mark D Horn 5dbee42d7d Fix Network Interface Copy
Fixes Issue: #261

Pull Request #236 introduced a bug where local network interfaces
are always copied to the target media.
This PR correct this by only copying when copyNetwork is set to
true; this is enabled in the UI when the users changes a network
interface (for static).

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-12 15:17:58 -07:00
Mark D Horn 0e2ec4183c Clarify version used by default
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-01-22 16:56:26 -08:00
Reagan Lopez 899853ebc9 Update documentation (#198)
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-01-22 16:42:22 -08:00
Mark D Horn aaf0174c8b Add reference document for YAML Syntax
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-01-04 16:11:04 -08:00