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