402 Commits
Author SHA1 Message Date
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
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 27ccfc8820 iso: Pass all options through to ISO generation
We need to pass the full suite of options to the ISO
generation code to ensure the call to swupd has all
of the requested options.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.0.1
2019-05-07 12:01:54 -07:00
Mark D Horn f75f9aa645 Update makefile for correct remove paths
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2.0.0
2019-05-06 16:03:45 -07:00
Reagan Lopez d10becc597 gui: Few CN changes based on google translate 2019-05-06 14:32:14 -07:00
Reagan Lopez bcb2c08b93 gui: Few ES translations based on Google translate 2019-05-06 14:32:14 -07:00
Castulo Martinez 1f6c8743e1 Fix a bug in Partial truncating an integer value
The Partial() function is used to report a partial progress in a
progress bar. When using this function the value set on the progress bar
was always zero since it was doing a division of two integers that were
always resulting in a number < 1 which was being truncated because both
numbers were integers so go was using an integer to store the result
too.

This commit fixes the bug by converting the values to the right types.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2019-05-06 13:40:44 -07:00
Mark D Horn f993546d80 network: Change in network bundle name
Switch from NetworkManager-basic to NetworkManager for the pending
network patch set.

Change to running each systemctl command in sequence instead of as
a single command to improve the recovery rate for network restart.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-06 13:36:34 -07:00
Reagan Lopez 6268b7817d gui: Remove unused strings from translation
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-06 13:32:08 -07:00
Reagan Lopez 3023f27071 gui: Removes newline char from Spanish translation
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-06 13:32:08 -07:00
Reagan Lopez a9b299fbc8 gui: Add translation fixes from localization team
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-06 13:32:08 -07:00
Reagan Lopez 7dae3a782e gui: Handle errors in the Install page
Handle errors during installation.
Displays an error message on screen instead of panic and crashing.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-06 13:31:50 -07:00