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 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>
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>
Copy over required template files for ISO creation to the proper
sytem-level directories when running 'make install'
Signed-off-by: Brian J Lovin <brian.j.lovin@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>
Update the targets to enable parallel execution
of the linters as they now take a long time with the
inclusion of the GUI code.
Also enable parallel of the go-get commands.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Build two different binaries for the TUI and GUI so
that we do not need to pull along overhead of the GUI
for installations without a graphics environment.
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>
Production builds are made from github source archives. As there
is no repository, git commands will not be available for builds.
Attempt to discover the version for the directory name or from
environment/make variable VERSION.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Use the -d argument for install command and let it deal with the
target directory creation.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Now the version string in the binary is set by the
existing tag, plus the sha if changes exists beyond
the tag, plus "dirty" if built with uncommitted changes.
Tagging of releases is now a manual process, but the Makefile
will still print the instructions.
Also saves us creating a PR just to change the version string.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We're considering it to be installed in the .gopath, but actually
we should be using the source dir (scripts).
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Change buildsystem to install the .desktop file and the desktop
wrapper. Whenever integrated in the package+bundle then we can remove
these steps from the live-desktop post install script.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
If we're installing artifacts to a mock environment for example
the directories like /usr/bin may not exist.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Make the "check" target as a single shell block, and 1) improve the
fail output display (by showing the left over files) and 2) ignore
the /tmp directory itself (avoiding to consider it as a left over
when some process has touched /tmp for example).
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
This target is intended to be used to test local-travis out of the
regular check-coverage workflow.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
- Hid the makefile comment
- Catch additional test case that need to clean up the
temp downloaded file
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Ensure both the main code and test clean up after themselves.
Testing for changes in the /tmp directory done in the Makefile
to ensure the testing is done outside of the code itself.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
The lint target needs the project is built before actually running
linters, this patch makes the build target dependency of lint target.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
This patch introduces the local-travis, an small util program locally
emulate the remote travis execution. The program will read the travis
yaml file and execute the tasks.
The program is not intended to be manually executed but wrapped by
"make check-coverage". The program uses the env var TRAVIS_CONF to
know where to find the travis yaml file (the makefile will have it all
set for you).
We also use the http_proxy, https_proxy and no_proxy if they are set.
If we're executing a docker command that supports -e flag then these
variables are also handled.
The check-coverage.sh script will also auto update the coverage database
and commit the changes if it detects a coverage increase. In order to
do that check-coverage will only update the database if there's no
unstaged changes in the tree and if it's being executed with
make check-coverage.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
- Ensure files are copied with same permissions
- New target for cleaning testing cache
- New target for running tests as root
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This is code is still alpha. The Text-based User Interface is
undergoing a resign of the layout before beta.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>