626 Commits
Author SHA1 Message Date
puneetse 4700761e58 Remove unused have_vmx check from initrd_init
This check originally came from the compatibility-check script for
checking containers but isn't required for the clr-installer.
2.4.0
2020-02-19 11:17:10 -08:00
puneetse a4bf9679fa Update TelemetryAboutURL
Documentation has moved to https://docs.01.org/clearlinux making the current URL invalid.
2020-02-19 11:08:17 -08:00
Mark D Horn 8169fe5e7c controller: Enable networking in a chroot
Fixes: #649

When post-install hooks are run in a chroot, the network is
inherited from the host, but DNS is not configured.
This work-around temporarily copy's the hosts /etc/resolv.conf
to enable DNS in the chroot.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-14 12:08:18 -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
Karthik Prabhu Vinod 31797ecb54 model,log: Small extraneous files fixes
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-02-13 15:54:28 -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 7478c9e280 model: clean up generated YAML files
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-12 18:37:08 -08:00
Karthik Prabhu Vinod a5328b689b TUI Net: Add user bundles net-test Note
Fixes Issue: #635

The user used to mistakenly click on items in the additonal bundles
page having to wait long duration unecessarily if the network did not work.
This provides the user with a Note saying that selecting an additional
bundle requires a working internet connection

Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-02-11 11:20:55 -08:00
Karthik Prabhu Vinod c964c76fc1 GUI Net: Add user bundles net-test Note
Fixes Issue: #635

The user used to mistakenly click on items in the additonal bundles
page having to wait long duration unecessarily if the network did not work.
This provides the user with a Note saying that selecting an additional
bundle requires a working internet connection

Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-02-11 11:20:55 -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
Mark D Horn 41138b83fb bundles: EOL python2 which has been deprecated
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-05 09:33:35 -08:00
Leandro Dorileo 2348394fd4 args: add --cbm-path
With the new flag we can easily instruct clr-installer to use an arbitrary
build/install, this flag eases the clr-boot-manager's CI by testing image generation
before we land new features.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-02-04 14:22:56 -08:00
Mark D Horn c694ab8c22 Ensure locale always has a default
Fixes: #634

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-01-28 16:17:21 -06:00
Mark D Horn 9b49df5d81 vendor: update to latest vendor code
Bring the vendor code up to latest releases.

github.com/VladimirMarkelov/clui
- Switched to release 1.2.1 instead of tip of master
2020-01-23 13:19:17 -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 0581bd8808 tui: high-contrast theme
Black and white theme to improve contrast

Active button reversed, bold, underline to standout

Fixes: #217

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-01-21 14:54:20 -08:00
Mark D Horn 619346fcff vendor: update to latest vendor code
Bring the vendor code up to latest releases.

github.com/VladimirMarkelov/clui
- Switched from release 1.2.0 to tip of master to
  pick up required fix which was upstreamed.
  Revert to release once 1.2.2 is released.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-01-17 10:57:30 -08:00
Mark D Horn 75694157df travis: make linting serial
Linting seem to be failing now when run in parallel in Docker.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-01-17 09:39:23 -08:00
Mark D Horn 96c9087d14 UI: Ensure we properly flag fails
Fixes: #447

Some failures with media left the progress bar active
and did not give a visual failure cue.

Add the executable to the message

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-01-17 09:39:23 -08:00
Mark D Horn 51ab42027e gui: add fail reason to system check fail
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-01-17 09:39:23 -08:00
Mark D Horn 8a7e4b486c Remove delay before PXE service
Initially the service was written to be a one-shot service
hence the need for the delay to ensure a stable network before
starting the service. Since the service was rewritten to run
in an infinite loop until installation succeeds, the delay is
no longer needed.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.3.7
2019-12-13 16:49:23 -08:00
Mark D Horn be11cbca1e storage: remove logical volumes during wipe
Fixes: #623

If a whole disk is used that contains logical volumes, they
need to be removed before re-using the disk.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-12-11 15:01:51 -08:00
Mark D Horn 767ffb8040 Fix test case variable case
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-12-11 12:55:19 -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 5ab5ce365d vendor with rollback on gotk3
Revert back to when the required gotk3 bug fix was introduced.
https://github.com/gotk3/gotk3/pull/366

Also picks up new release of runes

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-12-05 17:35:37 -08:00
Mark D Horn b4d50fade3 gui: Fix disk selection
Fixes: #614

Ensure we retain the selected disk from the chooser box
during refresh like setting an encryption password.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-12-05 17:35:37 -08:00
Mark D Horn 59c3237b5d gui: disk: Fix rescan content
Ensure clicking Rescan button updates the contents of
the chooser boxes for media selection.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-12-05 17:35:37 -08:00
Mark D Horn 288373c832 vendor: update all of the packages
This should cause a minor version bump needs extra testing.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-12-02 14:17:11 -08:00
Mark D Horn 4c4de4c948 storage: Make mounted checks recursive
This will find sub-vols like LVM which might be mounted.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-12-02 09:57:35 -08:00
Mark D Horn 838d56ea29 storage: Remove parent reference
This was unused and problematic to maintain

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-12-02 09:57:35 -08:00
Mark D Horn a4f83fd0fe model: controller: Keep Image default
--keep-image defaults to true, we only try to remove an
image file if it is set to false.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.3.6
2019-11-26 14:50:47 -08:00
Mark D Horn f2e376e179 Ignore flags when installing onto physical media
Ignore the --iso and --keep-image flags for the massinstaller
when installing onto physical media as they do not logically apply.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.3.5
2019-11-25 17:23:40 -08:00
Mark D Horn a9befd5b40 gui: tui: Check for invalid interactive options
Ensure we do not allow the user to set options, either
via command line or in the default configuration file,
which would not be valid during an interactive installation.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-25 17:23:40 -08:00
Mark D Horn 44363205b5 storage: Add RAID type to known list
Enable parsing of RAID types even though they are not
currently support installation targets.

Fixes: #609

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-25 17:23:15 -08:00
Mark D Horn a46992d460 model: Refactor to enable command line overrides
Enable conversion from JSON to YAML to have values overridden by
the command line arguments.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.3.4
2019-11-19 18:18:05 -08:00
Mark D Horn b7a52f2d67 controller: Keep image if disabling ISO
If an ISO can not be generated due to multiple kernels, then
ensure that we keep the raw image file.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-19 18:18:05 -08:00
Mark D Horn 13f3872640 Revert "mixer: Add image template for use by mixer"
This reverts commit 0683fdfc64.

Mixer will instead use the --template command line options
in combination with --bundles option to create a default
YAML configuration file instead of modifying a published template.
2019-11-19 18:18:05 -08:00
Mark D Horn dc513d49e3 args: Add Bundles command line option
Allow the user to override the default set of bundles on
the command line. This comma-separated list will override
either the default built-in bundle list or the bundle list
from a specified configuration file.

Note that the installer will still augment this list with
any RequiredBundle which is needed due to option selections
such as choosing a non-default keyboard or language, enabling
telemetry, or adding additional users.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-19 18:18:05 -08:00
Mark D Horn 200d9313f1 args: Add Template generation mode
Add new --template (-T) command mode which will generate
a YAML configuration file.

Attempt to improve test coverage.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-19 18:18:05 -08:00
Mark D Horn 2afeff5721 model: Warning on extra kernels for json to yaml
When converting an ister JSON configuration file to a
clr-installer YAML configuration file, we want to ensure
a single kernel is set. Additional kernel result in a
warning as ISO mainly due to ISO generation limitation
in the code.

Add new coverage test for multiple kernels.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-19 18:18: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
Reagan Lopez eb828da9de Skip ISO generation if additional kernels are present
Currently, ISO image generation supports only a single kernel.
Hence, skip ISO generation if multiple kernel bundles are present.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-11-19 11:06:17 -08:00
Mark D Horn 44840cff7c pxe: Block service if no config file
Do not start the clr-installer provisioning service if there
was no configuration file supplied on the kernel command line.

As this service has already masked the getty for this tty, no
login prompt will be available on this terminal. The use will
have to switch to a different virtual terminal for login access.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-14 13:54:16 -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>
2.3.3
2019-11-06 13:28:47 -08:00
Mark D Horn b80f568c70 args: Drop auto test coverage
Much of the new networking retry code is difficult to
test/emulate in a test environment -- as such, reducing requirement.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-06 13:09:44 -08:00
Mark D Horn af49072ac4 boot: use image mode
We should be using image mode when invoking clr-boot-manager
as we want changes implemented on the target image.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-06 13:09:44 -08:00
Mark D Horn 235b054c04 Ensure we remove lockfile when rebooting
Calling reboot means a race if defer functions will get
called before the process is shutdown.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-06 13:09:44 -08:00
Mark D Horn f74a0d1c46 args: Add retry to conf download
Fixes: #591

When attempting to download a configuration file supplied by
the kernel command line, keep trying forever. This is generally
used by a network boot installation.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-06 13:09:44 -08:00
Mark D Horn 6ab2c723c9 mass: Enable automatic reboots
Do not wait for user input for requested reboots.
Instead offer a short countdown which can be aborted
by an interactive user if enabled by mistake.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-06 13:09:44 -08:00
Mark D Horn 5f9f92f179 Fix spacing in makefile
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-06 13:09:44 -08:00