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>
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>
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>
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>
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>
Handle errors during installation.
Displays an error message on screen instead of panic and crashing.
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
Several logic fixes and hooks to debug the change password
problem. It appears the c-lang function we use for encryption
has some conflict with GTK, memory allocation.
TODO: Replace c-lang function with native go-lang code
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This added confusion and complex logic.
Since we are requiring that there is always at least one
user created, (as an admin), delete serves no purpose.
Keep strings as they will be needed in the User Manager coming shortly.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We want the root account locked on a Desktop installation to
prevent anyone with console access to switching to a virtual
terminal and setting a root password.
If there is an admin user, we will lock the root account.
TODO: When the user manager is added, only one user will be
required to be an admin.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Switch from red to a variant of orange
TODO: refactor the disk code to use the style.css by
splitting into two labels between title and description.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Remove any bundles the installer will always install from
the list of optional bundles selectable by the user.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Some users were confused by having a Cancel button on the
required Telemetry screen. They assumed if the state was
what they already wanted, they could just Cancel.
We want them to Confirm each time if Telemetry is enabled
or disabled.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Only show notice to request telemetry be enabled for corporate
networks if telemetry server is a private IP like the TUI.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixed corner cases if there are no media available, or
not safe media available.
TODO: Refactor the code which enables the confirm button
into a single function.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Pull the logic forward from the TUI for safe installs.
TODO: Enable Encryption
TODO: Advanced configuration of media
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
- Modifies the screen flow to first launch the Welcome (Language) page
- Adds localization package "gotext"
- Enables localization for "en_US", "zh_CN" and "es_MX"
- Modifies the strings to use localized version
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
Graphical UI version of the previous TUI feature
New functionality to download Pre and Post Installer messages
TODO: Display the messages as pop-ups
- Need to use system curl command to handle proxies for now
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This is the GUI version of the same fix that was implemented
for the TUI of Issue #242.
Only show user selected bundles on the summary menu item for
bundle selection; not core, required bundles.
Make the latest user bundle changes more evident by prepending
them to the list of bundles to install.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Do no hard-code the location, instead use the same lookup
function as the TUI to find theme related files.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This GUI has been implemented in GTK+ and is very much a work in
progress. So far, we have a number of initial pages implemented:
- Disk Configuration
- Bundles
- Keyboard
- Language
- Timezone
- Telemetry
Note, some of the pages are quite ugly and basic and will need
some improvements. Additionally, the disk config page is currently
very crude, only supporting automatic installation mode.
Additionally, the use of pkexec will ignore environmental variables
for the proxy, thus, proxy support is a bust in the GUI installer.
Some OS-level work is expected to resolve this magically anyway.
There are some ugly hardcoded elements, such as relying on a system
wallpaper file for CSS, and the cooked-in CSS vs an on-disk .css file
that designers can edit and tweak locally. Note that error handling
is incredibly immature right now, resulting in a panic. Realistically
we need to show a "success" or "failure" page within a stack on the
install page to let the user know what happened, and offer the choice
of a reboot.
As a final note, the UX is still not rock solid, and will need
a design-develop feedback loop to improve. This commit represents
my initial handoff for others to jump in and vastly improve the
GUI.
Signed-off-by: Ikey Doherty <ikey.doherty@intel.com>