413 Commits
Author SHA1 Message Date
Reagan Lopez d65510b833 gui: Introduces a pre-check page
Fixes #416.
After the language is selected, the pre-check page checks if the
prerequisites for the installation are met.
Currently the checks include system compatibility and network
connectivity.

Fixes the progress failure status to show a different color.

Refactored to remove redundant code.

Displays the system check error.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>gui: Fixes window resize due to error message
2.0.8
2019-06-27 16:47:03 -07:00
Alex Jaramillo eb019bcd7a telemetry: Include hypervisor to telemetry payload
Include the name of the hypervisor in the telemetry payload when
installed in VM.

Signed-off-by: Alex Jaramillo <alex.v.jaramillo@intel.com>
2019-06-26 15:50:40 -07:00
Mark D Horn dad433e744 user: Allow upper case and periods in login name
Fixes: #432

Reverts commit 3b284e0865
plus allows periods in the login name.

Recent change to Clear Linux adduser now allows upper case
letters as well as periods in the login name.
See https://github.com/clearlinux/distribution/issues/829

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-06-25 17:52:37 -07:00
Mark D Horn 840edb2049 cmd: proxies: Use proxies set in the environment
The TUI allows the user to set https_proxy, but the GUI
relies upon the Network Manager. Autoproxy via pacdisvoery
works, but if manual settings are made we need to use the
environment variables.

Changes to the proxies via Network Manager are synced
from the non-privileged user to root for proxy.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-06-25 12:13:39 -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
Reagan Lopez ffaac99d3c gui: Reformat info label during installation
Fixes #422.
Added an info label during installation that indicates success/failure.
Text wraps the label and makes it selectable.
Removes the error details from the info msg. Instead, includes the path to the log file.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-06-20 17:03:09 -07:00
Reagan Lopez 5965900294 gui: Make telemetry label selectable
Fixes #446

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-06-20 17:01:57 -07:00
Mark D Horn 29a74c2480 telemetry: Change default to no choice made
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-06-19 21:19:38 -07:00
Mark D Horn 29ea992b71 telemetry: Update the default text
Make the text more clear about the data which might be shared.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-06-19 21:19:38 -07:00
Reagan Lopez 0af18ed98b gui: Enable Telemetry using buttons
Instead of check box, use buttons to enable/disable telemetry.
Implements #442.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-06-18 15:16:50 -07:00
Reagan Lopez 54373fc337 Refactor telemetry page for naming consistency
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-06-18 15:16:50 -07:00
Mark D Horn cdc91601b8 log: Change default to debug logging
Since the installation is usually a one-time run, change the default
logging level to debug to capture details on any install issues.
This will help improve resolving customer issues when they arise.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.0.7
2019-06-17 18:53:55 -07:00
Reagan Lopez f39a65892e gui: Fix segv faults during installation
Use glib.IdleAdd() while calling routines that update UI during
installation.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-06-14 17:28:38 -07:00
Reagan Lopez 3a44a29cf1 Refactor install page for naming consistency
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-06-14 17:28:38 -07:00
Brian J Lovin e688601bfd isoutils: Fix output after swupd updates
When the swupd internal API changed, it broke iso production output -
there were progress 'subtasks' again. This commit fixes the output for ISO
creation by moving progress creation until after swupd is finished.

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-06-14 14:37:03 -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 60cc32acc6 travis: Docker image updated for gtk3
No longer need to install dev-gtk3 manually as it is now
part of the standard Docker image.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-06-05 13:50:20 -05:00
Mark D Horn 47e0c4769e travis: Add workaround for swupd issue
As swupd 3.20.0 swupd bundle-add does not work correctly in a
Docker image with the cache content in place.

Another possible work around is:
    mv /var/lib/swupd /var/lib/swupd_save
    mv /var/lib/swupd_save /var/lib/swupd

Swupd team still root causing why this is needed.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-06-03 17:58:05 -05:00
Mark D Horn 14dc9c080a tests: Update coverage numbers
Add new files and bring baseline up to current values.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
test 2.0.6
2019-05-29 18:11:52 -07:00
Mark D Horn 79b2dca54d swupd: Remove the Verify command
Verify no longer needed, just use VerifyWithBundles and
an empty bundle list to reuse code.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-29 18:11:52 -07:00
Mark D Horn 1977573fdb swupd: Remove depreciated code
Update and BundleAdd are no longer in use once we switched
to a single swupd verify for the OS install.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-29 18:11:52 -07:00
Mark D Horn 4d119cad7f swupd: Update help to be more accurate
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-29 18:11:52 -07:00
Mark D Horn b04333bc87 swupd: Add support for swupd --certpath
Fixes: #228

Enable the use of an alternate swupd certificate path.
Needed for mixes.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-29 18:11:52 -07:00
Castulo Martinez 05d2f9ad1f Use the JSON output from swupd to report progress
When running the "swupd verify" command to install the base OS and the
selected bundles, the progress of the command execution was just being
shown as a progress bar that was looping until the swupd command
finished. This approach was not ideal since this process can take
several minutes to complete, and since the progress bar was just
spinning it didn't provide a real feedback for the user to know in what
part the process was. This can trigger some anxiety in users.

This commit solves this problem by using the machine readable output
from swupd to determine the exact part of the process where the install is
and report this to the user using a series of steps along with a progress
bar (or percentage value in not TUI installer) that shows how far the
step has gotten.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2019-05-29 17:16:26 -07:00
Reagan Lopez 554b40f69d gui: Fix rescan media in bg
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-28 13:47:21 -07:00
Reagan Lopez a656d4149f gui: Scan Media in the background
In order to avoid delay in loading the installer, scan the media in the
background as a separate go routine.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-28 13:47:21 -07:00
Brian J Lovin 654c87359b init: Refactor and add colors
Add a main function for init, ensure all locals are labeled with local
correctly, change output to stop abusing kernel warnings.

Change success and failure messages to be consistent with systemd and
more clear to end users.

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-05-24 10:52:02 -07:00
Brian J Lovin 7a77abeb19 Fix progress output for ISO generation
The way this was coded was causing bugs in output when creating an ISO
image. The most obvious was the line "Cleaning up from ISO creation"
would be repeated a few times at the end of execution.

Having sub-progress loops doesn't make sense here, since the flow is
"task"->"completion status" not "task"->"subtask"->"sub
complete"->"task complete"

Also, the removed progress loops would fail to be printed anyways, so
removing them doesn't change progress output except for fixing this
bug.

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-05-24 10:28:07 -07:00
Brian J Lovin 2edeaaad26 tui: Add error dialog on syscheck failures
Directly after TUI init, run the system check and report if there are
any failures, and force application exit.

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-05-24 10:17:05 -07:00
Reagan Lopez c084b8316c Update Makefile to avoid GRS check
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-23 11:02:21 -07:00
Mark D Horn 24385e3e8e readme: minor updates due to GUI and ISO images
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-22 20:41:51 -07:00
Reagan Lopez fc2bc1806c Remove hardcoding filename in localization files
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-22 17:40:06 -07:00
Reagan Lopez 0ecd594053 gui: Add popup dialog for rescan media
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-22 17:40:06 -07:00
Mark Horn f376190c68 Automatically add bug_triage to new bugs 2019-05-20 16:24:52 -07:00
Brian J Lovin cdc969c3b0 syscheck: Localize syscheck and dialog
Add localization strings to proper files and correct calls to insert
these strings where necessary for syscheck and for the dialog when the
user's system fails.

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2.0.5
2019-05-15 19:01:54 -07:00
Brian J Lovin dbeeda502c gui: Add error popup on syscheck failures
After the user chooses a language (so we can localize the error), pop up
an error if the syscheck fails.

Add a quiet option to syscheck to disable printing to the terminal.

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-05-15 19:01:54 -07: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 9f6592bea2 Base the lock file on the log file
Fixes: #364

Enable concurrent execution with different log files.
Now locks are based off of the log file name, and are process based.
Allows for checking if existing lock process is active.

Enables  generation of multiple images in parallel.

vendor: Add lockfile package

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-15 19:00:26 -07:00
Mark D Horn 87709638ee swupd: Allow scripts to ensure network changes
Fixes Issue: #380

Change from --no-scripts to --no-boot-update which will
allow post install hooks of swupd to run for the target install.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-15 18:53:17 -07:00
Mark D Horn 55df2389ae network: Always copy /etc network files
When executing interactively, text-base or graphical, we want
to always copy any local /etc network configuration files to
the target system.

If the user has made customer network settings, usually with
nmcli/nmtui for console, or NetworkManager on the desktop, these
will want to be propagated to the target.

Add command line option to avoid network copy.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-15 12:52:04 -07:00
Mark D Horn ef92ae635f iso: Change wording of retries
Remove the "Failed" wording in favor of "Searching" during
retries as the failed word was confusing to some customers.

Corrected spelling.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-14 15:50:17 -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>
2.0.4
2019-05-13 17:41:11 -07:00
Mark D Horn 34fac2c3ab gui: Added vlc to default installed bundles
Now also include vlc to every desktop install.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-13 17:41:11 -07:00
Mark D Horn ca58ed896c locale: Re-insert newlines
Localization of the thank you message read clearer in Spanish
with the newlines suggested.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.0.3
2019-05-08 21:18:23 -07:00
Mark D Horn d96230f8d9 tui: gui: Do not display version in Demo mode
For documentation purposes (screen shots), we do not want to
include the version string. Having a version string in the image
requires updating all image each release.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.0.2
2019-05-08 16:04:27 -07:00
Brian J Lovin cb0c9f5b1c isoutils: Add Rufus ISO image support
Rufus in iso image mode creates a new filesystem and copies all files
from the iso onto that filesystem. This broke Clear boot because there
were missing files from the CD root to boot (those files were in
efiboot.img), and because initrd was limited to mounting only ISO files
to find the rootfs.

Now the files from efiboot.img are copied to the ISO root (so that Rufus
will now work), the initrd paths have been made congruent (though there
are two initrd.gz files - one in efiboot.img and one on the ISO root),
and some extraneous systemd files have been removed.

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-05-08 13:32:16 -07:00
Mark D Horn dedda923e7 tests: update coverage for replacement encryption
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-08 13:31:49 -07:00
Mark D Horn 4558907500 encrypt: Switch to native golang code
Drop the C code and replace with native go code using
whitelisted vendor package.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-08 13:31:49 -07:00
Mark D Horn e5a7e1717f vendor: Import new crypt package
New whitelisted package to provide native password encryption.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-08 13:31:49 -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