369 Commits
Author SHA1 Message Date
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
Mark D Horn 3b284e0865 user: Only allow lower case letter for login
Recently discovered Clear Linux only allows lower case letter
as part of a login name. Updated validation check and error message.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-06 13:28:39 -07:00
Mark D Horn e26665e7cf scripts: set prompt via hostname
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-06 13:23:51 -07:00
Reagan Lopez 61622a78b8 gui: Limit Enable Encryption button click area
Limits the clickable area of the Enable Encryption check button to be
within the label.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-06 09:44:52 -07:00
Mark D Horn db6352a37c gui: user: Several bug fixes for add vs update
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>
2019-05-02 19:23:40 -07:00
Mark D Horn 7a289b3400 gui: user: remove delete button
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>
2019-05-02 19:23:40 -07:00
Mark D Horn 918bb1547e gui: user: Force the only user to be admin
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>
2019-05-02 19:23:40 -07:00
Reagan Lopez 86b8a0464b gui: Add third set of translations
Add the third set of translations and optimize screen size further.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-02 18:08:00 -07:00
Reagan Lopez f6e38af962 gui: Add second set of translations
Add the second set of translations and fix issues due to the increase in
the size of texts.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-02 14:57:29 -07:00
Mark D Horn de5120148e storage: remove fatal partprobe
We were part probing all of the devices at once, then again
one at a time. Remove the second probing.

Also make the probing only log on fail.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-02 14:24:45 -07:00
Mark D Horn 0da99239e4 Prevent duplicate instances
Create a simple lock file for preventing more than one instances of
the installer from running.

If we have a recoverable crash, like SEGV (accessing a nil pointer)
we will not likely remove the lockfile. For the installer ISO images
the user may have to manually remove the lockfile or reboot.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-02 14:23:15 -07:00
Mark D Horn c58ba81ff1 locale: Missing string for Disabled
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-01 20:29:55 -07:00
Reagan Lopez 7e0d6fe955 gui: Implements disk encryption
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-01 19:11:23 -07:00
Reagan Lopez c336307112 gui: Introduce common functions for Dialog (popup)
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-01 19:11:23 -07:00
Mark D Horn baa8e9bde7 tui: storage: Advanced Config full disk fix
Fixes Issue: #333

We were not properly propagating flags related to the
selected disk.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-01 18:54:08 -07:00
Mark D Horn 75493fa8c6 script: Remove extra desktop icon
The developer image installs the local code over the released
clr-installer bundle. This leaves the old desktop icon for
the TUI. Manually remove for now; it won't be present in the
production release.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-01 18:46:21 -07:00
Mark D Horn 66a34e85bb gui: Change to higher contrast warning color
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>
2019-05-01 15:53:15 -07:00
Brian J Lovin 519652ffb6 isoutils: Include custom kernel command line parms
isoutils had a bug which would remove additional kernel command line
paramaters specified during image build time.

To fix this, instead of reading the cmdline file from the rootfs,
read the modified cmdline file from the EFI partition (which
clr-boot-manager fills in for us).

Modify the options as required, and then write in the appropriate
places.

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-04-30 15:17:24 -07:00
Mark D Horn 003d1b54bd scripts: Disable autoUpdate
For the developer images we want to disable autoUpdate for the ISO
images.  DevOps always add the version= option which disables
autoUpdate automatically.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-30 14:24:15 -07:00
Mark D Horn 0e07ef933e tui: correct typo in dmesg
Refixes: #300

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-30 14:18:45 -07:00
Mark D Horn 3ba2a9ec23 scripts: Add missing script and update sytle
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-30 10:26:35 -07:00
Mark D Horn bed70bbb0f gui/tui: Display installation complete step
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 19:45:03 -07:00
Reagan Lopez 6f9b0a8d0c gui: Prompts user for confirmation before install
Also disables exit button during installation and
re-enables it after installation is complete.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-04-29 19:39:51 -07:00
Mark D Horn 8186ed4d8e bundles: Remove bogus bundle
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 18:18:33 -07:00
Mark D Horn 1bfa2cbe8a swupd: Filter bundles which will be installed
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>
2019-04-29 18:18:33 -07:00
Mark D Horn 9be79bb102 bundles: Updated to validate the bundles
We had an unknown bundle in the list of user optional bundles,
now we always check that all bundles are valid.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 18:18:33 -07:00
Mark D Horn 1a9a6bac7a tui: disk: Fix warning labels
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 15:11:47 -07:00
Mark D Horn b9b8e95acb gui: Desktop Launcher fixes
Made all files and actions consistent with the clr-installer-gui name.

Fix security of starting Installer; user pkexec not sudo.
Added new rule for clr-installer-gui.

Fix bug so only one icon is present when running.

Switch to only using Mexican Spanish for translations.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 14:40:48 -07:00
Mark D Horn 2134b1834f server: Convey how to configure network for server
TODO: Remove the TUI networking support for setting
static IP, possibly Proxies.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 12:53:40 -07:00
Mark D Horn 587d0ef832 gui: bundle updates
Add the NetworkManager and gparted to YAML for now
There should be added to the clr-installer-gui bundle
at release time.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 11:19:14 -07:00
Mark D Horn c882fa9cfe desktop: disable auto-mounting
We do not want auto-mounting of media in the installer image
as any mounted media is excluded from possible install targets.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 11:18:26 -07:00
Mark D Horn ba097ec405 locale: Added more strings
Two are missing from the GUI

Added "Advanced" which is need by the TUI and will be added to the
GUI in the next two weeks.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-26 22:04:38 -07:00
Mark D Horn 8bfcbe04e5 gui: remove cancel button from telemetry
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>
2019-04-26 21:36:24 -07:00
Reagan Lopez fc3d3faf84 gui: Remove obsolete strings from localization
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-04-26 18:59:29 -07:00