Commit Graph

91 Commits

Author SHA1 Message Date
Mark D Horn f51c2d4093 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.
- controller: Add clr-init with lvm usage
- LVM always written in /etc/fstab

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-06-17 16:38:34 -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 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 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
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
Alexander Koskovich d3cdbc25a1 Typo in YAML scripts
Also capitalize/end with period.
2020-02-12 18:55:13 -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
Mark D Horn 446d8ef177 scripts: Community link moved
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-19 17:39:43 -08:00
John 6f317e1a86 scripts: Add pxe reference script
This script creates the pxe image that is later processed into the
initrd for network installing with pxe.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-11-06 13:28:47 -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
John Akre 1527c25d6d Add offline install support
When creating installer images with offline support, installation
content for a minimum set of bundles will be downloaded to the
/var/lib/clr-installer/offline-content directory inside the installer
image. The offline-content directory will be used instead of the network
to install bundles when it exists.

To generate images with offline support, the --offline command line
argument or the offline config file field can be set.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
John Akre bf89aeaa40 Add targetBundles support to config
The targetBundles field in the config file specifies the minimum set of
bundles that the installer image's installer will install to the target
media. To achieve this functionality, a config file is generated and
inserted into the installer image at /var/lib/clr-installer.yaml. This
config file contains the list of bundles specified by targetBundles and
a minimum set of entries based on the config file used to generate the
installer image (keyboard, language, timezone, kernel).

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
Mark D Horn 98089cc36d scripts: sync with devops
Pull in some recent devop changes so the developer test
builds are in-sync.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-12 19:20:47 -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
Alex Jaramillo 201767721b telemetry: rework record generation
Use a new feature from telem-record-gen where the telemetry record is
generated independently of telempost daemon. This change allows to
simplify the code to interact with telemetry.

Signed-off-by: Alex Jaramillo <alex.v.jaramillo@intel.com>
2019-08-19 16:14:42 -07:00
Mark D Horn 447c4e3cf2 scripts: sync with devops
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-08-15 13:57:36 -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 65a01e46bf scripts: Keep proxies for root
Since the installer runs as root, we need to ensure that the
proxy environment variables are maintained.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-06-25 12:13:39 -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 2668476004 scripts: Update whitelist scripts
Now the script can take the previous report as a starting
point and add missing imports.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-15 19:00:50 -07:00
Mark D Horn e67552f6bd gui: Keep developer YAML in sync with DevOps
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-13 17:41:11 -07:00
Mark D Horn 1a8675f042 scripts: match production image files
Update the bundle lists

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-07 15:03:50 -07:00
Mark D Horn d66dc401de scripts: Add Software Store to Toolbar
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-07 15:03:50 -07:00
Mark D Horn e26665e7cf scripts: set prompt via hostname
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-06 13:23:51 -07:00
Mark D Horn 75493fa8c6 script: Remove extra desktop icon
The developer image installs the local code over the released
clr-installer bundle. This leaves the old desktop icon for
the TUI. Manually remove for now; it won't be present in the
production release.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-01 18:46:21 -07:00
Mark D Horn 003d1b54bd scripts: Disable autoUpdate
For the developer images we want to disable autoUpdate for the ISO
images.  DevOps always add the version= option which disables
autoUpdate automatically.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-30 14:24:15 -07:00
Mark D Horn 3ba2a9ec23 scripts: Add missing script and update sytle
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-30 10:26:35 -07:00
Mark D Horn 9be79bb102 bundles: Updated to validate the bundles
We had an unknown bundle in the list of user optional bundles,
now we always check that all bundles are valid.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 18:18:33 -07:00
Mark D Horn b9b8e95acb gui: Desktop Launcher fixes
Made all files and actions consistent with the clr-installer-gui name.

Fix security of starting Installer; user pkexec not sudo.
Added new rule for clr-installer-gui.

Fix bug so only one icon is present when running.

Switch to only using Mexican Spanish for translations.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 14:40:48 -07:00
Mark D Horn 2134b1834f server: Convey how to configure network for server
TODO: Remove the TUI networking support for setting
static IP, possibly Proxies.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 12:53:40 -07:00
Mark D Horn 587d0ef832 gui: bundle updates
Add the NetworkManager and gparted to YAML for now
There should be added to the clr-installer-gui bundle
at release time.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 11:19:14 -07:00
Mark D Horn c882fa9cfe desktop: disable auto-mounting
We do not want auto-mounting of media in the installer image
as any mounted media is excluded from possible install targets.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 11:18:26 -07:00
Brian J Lovin c136712772 Add boot message, disable autolaunch, change PS1
Add a message printed on boot that gives basic information and
instructions to login as root and run clr-installer to install onto this
sytem.

Also change $PS1 on the installer image after logged in to
indicate we're booted into a live image.

Remove clr-installer.service from the Makefile and remove all the
toggling on or off from the yaml files.

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-04-26 17:48:23 -07:00