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>
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>
Handle errors during installation.
Displays an error message on screen instead of panic and crashing.
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Add a message printed on boot that gives basic information and
instructions to login as root and run clr-installer to install onto this
sytem.
Also change $PS1 on the installer image after logged in to
indicate we're booted into a live image.
Remove clr-installer.service from the Makefile and remove all the
toggling on or off from the yaml files.
Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
We added the new function to speed up the builds, but
didn't EOL the old code yet. Need to reduce coverage
for now, but we should do a code clean-up and update
coverage later this quarter.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
The about of code and the number of checks has exceeded
the free resources of Travis in 30 minutes.
Pull two of the longer running from the regular Travis
runs and add a new lint-release target to be run before
a release is done.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Use new bundle option to swupd verify instead of bundle adds.
Optimize the flow to only have a single swupd verify call.
Reduces the desktop image build from 40 minutes to 10 minutes.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>