73 Commits
Author SHA1 Message Date
Mark D Horn b9970047f9 Allow skipping swupd configuration file copy
Fixes: #600

Only copy the swupd configuration files from the host to the target
by default when running the interactive installer (gui or tui).
Otherwise, observe the setting from the configuration YAML or the
command line (highest) argument.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-12-11 10:47:05 -08:00
Mark D Horn 446d8ef177 scripts: Community link moved
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-11-19 17:39:43 -08:00
John 6f317e1a86 scripts: Add pxe reference script
This script creates the pxe image that is later processed into the
initrd for network installing with pxe.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-11-06 13:28:47 -08:00
John Akre 53db1a1fd9 swupd: Support skipping optional bundles
Optionally included bundles (also-add) can now be omitted from the
install target by passing the --swupd-skip-optional flag or by setting
the swupdSkipOptional field in the config file.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-11-04 09:06:25 -08:00
Mark D Horn e482042355 swupd: model: Allow format to be set in config
Fixes: #559

Allow the format to be set in the configuration YAML file
as well as on the command line.

Useful for mixes.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-10-08 14:09:00 -07:00
John Akre 0b73c2d45a Update to latest when version is 0
When the version field in the config file is set to 0, the latest
version will be installed instead of the host's version.

Fixes: #502

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-10-02 13:15:42 -07:00
Mark D Horn 2e3c5bf50b Support insecure updates over HTTP
Fixes: #478

Add new --allow-insecure-http flag to support the use of HTTP URLs.
This is needed to allow swupd to download content from http sites;
generally development mixes.

Also enable the use of the setting in both the TUI and GUI to allow
the user to set a swupd mirror which is HTTP.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-30 17:32:36 -07:00
John Akre bca9042ec3 docs: Document offline and targetBundles
Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
John Akre 1527c25d6d Add offline install support
When creating installer images with offline support, installation
content for a minimum set of bundles will be downloaded to the
/var/lib/clr-installer/offline-content directory inside the installer
image. The offline-content directory will be used instead of the network
to install bundles when it exists.

To generate images with offline support, the --offline command line
argument or the offline config file field can be set.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
John Akre bf89aeaa40 Add targetBundles support to config
The targetBundles field in the config file specifies the minimum set of
bundles that the installer image's installer will install to the target
media. To achieve this functionality, a config file is generated and
inserted into the installer image at /var/lib/clr-installer.yaml. This
config file contains the list of bundles specified by targetBundles and
a minimum set of entries based on the config file used to generate the
installer image (keyboard, language, timezone, kernel).

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-09-23 16:08:10 -07:00
Mark D Horn 98089cc36d scripts: sync with devops
Pull in some recent devop changes so the developer test
builds are in-sync.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-12 19:20:47 -07:00
Mark D Horn 0983f1f95a locale: switch to swupd bundle glibc-locale
Updating the installer to use the preferred swupd bundle
glibc-locale instead of locale. Both have the same definition.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-11 16:26:09 -07:00
Mark D Horn 0d42c2d792 Update YAML Syntax for ISO files
Fixes: #501

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-09-11 13:23:48 -07:00
Alex Jaramillo 201767721b telemetry: rework record generation
Use a new feature from telem-record-gen where the telemetry record is
generated independently of telempost daemon. This change allows to
simplify the code to interact with telemetry.

Signed-off-by: Alex Jaramillo <alex.v.jaramillo@intel.com>
2019-08-19 16:14:42 -07:00
Mark D Horn 447c4e3cf2 scripts: sync with devops
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-08-15 13:57:36 -07:00
Joe Konno 12344a5641 InstallerYAMLSyntax: fix cmdline bug from example
The kernel-arguments example is missing a pair of quotes for the remove
field-- without the quotes, two removal entries are added to
cmdline-removal.d on installation: "console=ttyS0" and "115200n8".

The quotes ensure that a single cmdline-removal.d entry,
"console=ttyS0,115200n8", is generated at installation time on the
target.

Signed-off-by: Joe Konno <joe.konno@intel.com>
2019-07-23 14:50:18 -07:00
Mark D Horn 65a01e46bf scripts: Keep proxies for root
Since the installer runs as root, we need to ensure that the
proxy environment variables are maintained.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-06-25 12:13:39 -07:00
Mark D Horn 2f3399754f doc: YAML information update
Add details about using the rest of the free space.
Correct typo and spelling errors.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-06-05 16:29:00 -05:00
Mark D Horn 2668476004 scripts: Update whitelist scripts
Now the script can take the previous report as a starting
point and add missing imports.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-15 19:00:50 -07:00
Mark D Horn e67552f6bd gui: Keep developer YAML in sync with DevOps
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-13 17:41:11 -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 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
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 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 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 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 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
Brian J Lovin c136712772 Add boot message, disable autolaunch, change PS1
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>
2019-04-26 17:48:23 -07:00
Mark D Horn 6675e2efcf desktop: Re-add c-basic
This sizing issue has been fixed.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-26 15:06:50 -07:00
Mark D Horn 797b7d99f8 scripts: Fix configuration files
Pull back updates release in DevOps back to development.

The new developer-live-*.yaml files will be the basis of
the future live-*.yaml files.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-23 16:11:39 -07:00
Brian J Lovin 9e0046a6cc live desktop beta yaml: New bundles and iso output
Added the suggested bundles from Bun, and added the correct flag to
enable iso builds by default.

Currently, llvm is too large (due to 32-bit libraries being included) to
fit into the 8GB filesystem specified in this yaml. This is a confirmed
issue and should be resolved.

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-04-19 15:06:47 -07:00
Ikey Doherty 2f9461b2e1 gui: Initial introduction of pre-alpha installer GUI (bootstrap)
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>
2019-04-19 14:25:56 -07:00
Mark D Horn d62ef607aa Script for show all imports
We use this to review the imported packages are part of
our release review process.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-16 22:56:16 -07:00
Mark D Horn 5dbee42d7d Fix Network Interface Copy
Fixes Issue: #261

Pull Request #236 introduced a bug where local network interfaces
are always copied to the target media.
This PR correct this by only copying when copyNetwork is set to
true; this is enabled in the UI when the users changes a network
interface (for static).

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-12 15:17:58 -07:00
Mark D Horn 216679d861 Fix desktop image size for USB media
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-06 09:53:17 -08:00
George T Kramer c2773b0e78 Chroot when enabling clr-installer service
When using the --root option with systemctl, libsystemd for the systemd
in the chroot will be resolved on the host.  In cases where the systemd
in the chroot is a different version from the systemd on the host, this
will result in a library not found error.  Need to chroot when eanbling
clr-installer service to avoid this problem.

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2019-03-05 18:17:33 -08:00
Mark D Horn e1e779ce98 Ensure HOME is set for post hook as root
Even though we are running as a login shell, the HOME is
not being set and hence neither is GOCACHE which is required
for golang 1.12 and beyond.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-05 11:01:55 -08:00
Mark D Horn 6a27623a82 New telemetry defaults
Update the latest release telemetry configuration file
and update the post install hook with the new default
and new maximum.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-04 14:28:41 -08:00
Mark D Horn 80f226ae72 Developer Desktop YAML File
For developer to build a desktop image with the locally
modified installer code.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-02-22 17:26:44 -08:00
Mark D Horn 0e2ec4183c Clarify version used by default
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-01-22 16:56:26 -08:00
Reagan Lopez 899853ebc9 Update documentation (#198)
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-01-22 16:42:22 -08:00
Mark D Horn 2000b08c5b Synchronize Desktop Beta and Installer images
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-01-08 16:24:10 -08:00
Mark D Horn aaf0174c8b Add reference document for YAML Syntax
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-01-04 16:11:04 -08:00
Mark D Horn f3e05fab9a Rename Installer Image
To keep a consistent naming convention, rename installer image.

[image-name].yaml -> clear-[VER]- [image-name].img.[compression ext]

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-12-31 10:16:17 -08:00
Mark D Horn 0992e931b1 developer: Enable debug logging
Ensure high level of debug logging enabled for developers.
Also view console output on starndard tty to get rescue shell
during boot fails.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-11-30 10:01:17 -08:00
Leandro Dorileo a69eb78035 images: add a builder yaml file
This yaml file reproduces the builder environment.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-11-19 17:57:14 -08:00