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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
- 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>