- Add suspend lvm state for offline volumes.
- Need to check all children for possible install targets.
- controller: Add clr-init with lvm usage
- LVM always written in /etc/fstab
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fix logic bug as we can not check the swapfile size
when we are using the default of '0' for the partition
size to use the remaining free media space.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Prior to production using clr-installer for image generation
we created a parallel copy of their configs and scripts; this
is now redundant and frequently out of sync. Removing dups
and leaving a few examples and tests used by developers.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We should always use the yamlDir macro to find helper
scripts relative to the yaml configuration file used.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Documentation and standard convention requires allowInsecureHTTP
to be camel-case, but the code and documentation were both incorrect.
Some users will need to update the YAML files if they already
had the incorrect 'AllowInsecureHttp' which is now 'allowInsecureHTTP'.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
The size of the swapfile can be set in the YAML file
and overridden by the command line argument.
Update for usage of XiB or XB units.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Add command line arguments and YAML file configurations for settings
skipping partition size checks during validation.
Skip Validation All implies Skip Size.
Never write skip validation options to YAML
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes: #628
Allow the use of the Advanced Media Partition labels from the command
line interface if no targetMedia is found in the YAML file.
The primary use case for this feature is PXE booting for installation.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes: #531
Add new hook to be called after image generation is completed.
Update base image test to use post-image hook
This is useful for image manipulation such as compression, format
modification, etc.
These configurations are intended to two different cbm configurations with dedicated
boot partitions either vfat and ext4 formatted.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Add the publisher and the application/image type to the ISO.
- ApplicationId set to 'server' by default, 'desktop' if any
bundles are included which contain the name 'desktop.
- ApplicationId can be overridden via the YAML file
- Publisher only set if included in YAML file
Add new test coverage.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>