640 Commits
Author SHA1 Message Date
Mark D Horn 02b30f1bd9 storage: f2fs uses lower case l for labels
Fixes: #681

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.4.2
2020-03-12 15:11:46 -07:00
Mark D Horn 35a93e48f6 conf: drop unused constant
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-10 18:54:06 -07:00
Mark D Horn 86311bed04 swupd: fix comments
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-10 13:29:40 -07:00
Mark D Horn ad8b17cc56 kernel: Add new lts2019 kernel option
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-09 09:53:06 -07:00
Mark D Horn b54dcfb3fb Add complete step to the task list
Add a final step that confirms for the user that the installation
has completed.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-04 10:45:51 -08:00
Mark D Horn 9bf7fd696e Fix to the makefile outside of git repo
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.4.1
2020-02-27 16:23:29 -08:00
Mark D Horn ec6d983c26 Add legacy BIOS warning
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-27 15:06:20 -08:00
Mark D Horn 52de0593c8 Remove EFI hard requirement
clr-boot-manager can now support booting in legacy mode on bare metal.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-27 15:06:20 -08:00
Mark D Horn 44335ee0cc controller: Make hooks indeterminate
It is unknown how long each shell command can take or there may
be only a single call to a long-running script so make this
indeterminate to output spinner progress.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-27 15:00:31 -08: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
Mark D Horn f73d0d198e storage: ensure we read the partition table
A recent change in Clear Linux OS resulted in partprobe no longer
processing loop back devices by default. Adding --partscan to
losetup ensures we read the partition table changes.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
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
Karthik Prabhu Vinod ccc97c99fa Implement GO Modules
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-02-26 00:51:57 +00:00
Mark D Horn dba50a7722 swupd: Fix URL which was broken
Fixes: #667

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-02-21 10:32:51 -08:00
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