96 Commits
Author SHA1 Message Date
John Akre c7fae814b5 swupd: Concatenate printPrefix with description
Now printPrefix is concatenated into the progress bar description. The
printPrefix is only intended for the mass installer, so it is removed
from the gui/tui progress bar descriptions.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-10-16 09:15:21 -07:00
John Akre 2e5692ae53 gui: Correctly set advanced disk config warnings
When using advanced disk partitioning with an invalid setup and loading
the menu page or disk configuration page for the first time, the warning
messages were not set correctly. The warnings were incorrectly set
because the TargetMedias variable was unexpectedly overwritten to nil.
This change prevents unexpected overwrites of TargetMedias and sets
TargetMedias when it is uninitialized.

Fixes: #553

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-10-04 14:33:29 -07:00
John Akre 10f1ecea4d Move IsValidMirror to network package
The IsValidMirror function was moved to the network package and renamed
to IsValidURI because it can be used for more than swupd mirror validation.
The IsValidURI function is used to check for supported URI protocols.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-10-02 16:46:40 -07:00
Tapani Pälli c0f32b3aff gui: pack content layout to a scrolled window if needed
This ensures that user is able to proceed through installer
with low resolutions.

This commit also removes hardcoded placement of 'change language'
button (See removed TODO).

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
2019-10-01 14:57:40 -07:00
Tapani Pälli 77af98bab0 gui: make sure app fits the monitor size
This is done to ensure that installer can be run on virtual
machines that have a small default screen size.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
2019-10-01 14:57:40 -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 d2e71c75a2 gui: Fix disk config menu description
The saveMedias variable is responsible for selecting between loading the
page or resetting page state on cancel button clicks. When clicking the
confirm button, saveMedias must be set to nil to prevent flipping the
logic for loading the page and cancel button clicks. This logic
inversion led to incorrect menu descriptions for the disk config page.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-24 16:52:18 -07:00
John Akre 980ed23cb2 gui: Preserve installation type
The installation type is now preserved when re-entering the disk config
page.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-24 16:52:18 -07:00
Mark D Horn 0e1188dee0 gui: tui: Reword messages for advanced disk config
Fixes: #533

Change from partition label to partition name to be consistent
with how the data is named in the external tools.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-23 18:06:43 -07:00
Mark D Horn ddf2ded095 gui: Remove old comment
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-23 18:06:43 -07:00
Mark D Horn e05bbdf4a5 gui: Fix default disk selection bug
Ensure that we default to the previously selected disk
when re-entering the media selection screen.

Fixes: #515

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-23 18:06:43 -07:00
Mark D Horn fe4ef72a91 gui: warning when no usable media
Fixes: #521

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-23 18:06:43 -07:00
John Akre d0ec0371b6 swupd: Specify VerifyWithBundles steps
The VerifyWithBundles function is used to install contents into the
target, download offline contents, and to create the initrd for the ISO.
Now, a prefix string will be added to the output of these commands to
specify which step VerifyWithBundles is running.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
John Akre ed62e96b51 install: Update indeterminate progress bar
The indeterminate progress bar does not behave as expected when pulsing
twice consecutively. In this case, the progress bar moves very, very
slowly. When the progress bar pulses once, it smoothly moves back and
forth across the screen.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
John Akre 320b807f20 gui: Remove precheck page
Network checks are no longer a hard requirement with offline install
support, so the precheck page should not prevent users from advancing.
This change creates a fatal pop-up window for system check failures and
removes the precheck page. Network checks will be performed as needed.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
John Akre 606112af4a gui: Add network check to install
When a network connection is required to complete an install, but the
installer's network state is not passing, a network check will be
performed. If the network check fails, additional bundles were selected,
and offline installs are supported, the user will be prompted to remove
the additional bundles so that they can continue the install.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
John Akre 6cb2d1ef52 gui: Add network check to bundle page
The bundle page will peform a network check when the network state is
not passing. Users will be unable to select additional bundles when the
network check fails.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
John Akre 2b29ce834b gui: Add network check to menu
A network check page was added to the menu. Similarly to the TUI, the
network check page will launch a pop-up window and perform a network
check.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
Mark D Horn 2615d0173e gui: tui: storage: Disable the partial adv encrypt support
The support for using encrypted file systems with advanced disk
configuration needs a lot more work.
Tracking new GitHub Issue in #512

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-12 19:20:47 -07:00
Mark D Horn c190a7169a gui: locale: advanced disk config
The GUI need to be updated to ensure that the user defined state
was updated so that we store the user's answer in the (temp) YAML.

Make the GUI be consistent with the TUI and with the other
two selection labels for the Disk configuration.

Change advanced to warning

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-12 19:20:47 -07:00
Mark D Horn 2ebb9e1bd3 utils: gui: tui: Enable clean up temp files
Make use of new command line arg to clean-up the temp
YAML files and install directories.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-12 19:20:47 -07:00
Mark D Horn db3a17c7c6 gui: base media page layout complete
- model: Store precheck status in model
- Refactor sudo user into reusable function
- Enable the partitioning tool button

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-12 19:20:47 -07:00
Mark D Horn 54c5c3949a gui: Show detailed installation summary
Show the user the changes that will happen to media before
confirming the start of the installation.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-12 19:20:47 -07:00
Mark D Horn 29986733df gui: Change InstallSelected to be a map
Change InstallSelected to be a map with the key being
the name of the TargetMedias from the model to support
installing across multiple disks.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-12 19:20:47 -07:00
Mark D Horn 87c554a92c gui: Add disk name to choose list
The disk device name is show in the configured information, but
was missing in the chooser list. User had request this to be able
to differentiate between two drives of the same model.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-12 19:20:47 -07:00
Mark D Horn 7c99f7d9c8 args: tui: gui: --gui flag to force graphics mode
Now check for mutually exclusive options.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-12 19:20:47 -07:00
Mark D Horn 142ad41f51 telemetry: tui: gui: allow user default in YAML
If the telemetry value is added to the YAML will set the default
as if the user had selected it in the UI.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-12 19:20:47 -07:00
Reagan Lopez 7b5b5f008f gui: Increase clickable area for Media Selection
Implements #404

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-07-29 17:41:48 -07:00
John Akre abe8e5ce63 swupd: Require HTTPS/FILE protocol for mirror
The installer will only support the HTTPS and FILE protocols when
setting the swupd mirror. The gui and tui will prompt the user to use
HTTPS, but will also accept FILE. The mass installer will prompt for
either HTTPS or FILE.

Fixes #473

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-07-23 15:28:15 -07:00
Reagan Lopez ecfd63d3ce gui: Refactor code to handle closing of page
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-07-12 17:16:06 -07:00
Reagan Lopez 979afce168 gui: Fix window resize due to long strings
Fixes #455

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-07-12 17:16:06 -07:00
Reagan Lopez 921d25c5ab Add swupd config strings in a common file
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-07-12 17:16:06 -07:00
Reagan Lopez f4d18711b7 gui: Introduces Swupd Configuration page
Fixes #405 #407

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-07-12 17:16:06 -07:00
Reagan Lopez a9000f2061 gui: Change color of popup error message
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-07-02 17:50:19 -07:00
Reagan Lopez 851dca7871 gui: Introduces Panic() to handle crashes
Fixes #417

Also, removed unused variables in Gui struct:
- Removed "model" and "installReboot" variables from Gui struct as they
  are not being used.
- Updated log level from warning to errors wherever applicable.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-07-02 17:50:19 -07:00
Reagan Lopez 14c29ac431 gui: Add a label for kernel selection
Add a label and corresponding translations for kernel selection.
Modified style of scroll list and heading padding to match rest of the
application.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-07-02 14:54:57 -07:00
Mark D Horn 63824e6df6 kernel: bug fix for clearing parameters
graphical will crash if you "confirm" without a value
for the kernel command line.

Also fixed the same bug in the text-based interface.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-07-02 14:54:57 -07:00
Brian J Lovin 7046dc6eec gui: Add kernel options page
New page to set a custom kernel and the associated command line options.

There's a tooltip over the entries that has the same verbiage as is in
the TUI page. There's also a concept of 'default' options, based on what
is currently loaded in the model. This works even on VirtualBox to
mark the LTS kernel as a default.

Fixes #384, Fixes #386

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-07-02 14:54:57 -07:00
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
2019-06-27 16:47:03 -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
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
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
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