Fixes: #649
When post-install hooks are run in a chroot, the network is
inherited from the host, but DNS is not configured.
This work-around temporarily copy's the hosts /etc/resolv.conf
to enable DNS in the chroot.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
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>
Fixes Issue: #635
The user used to mistakenly click on items in the additonal bundles
page having to wait long duration unecessarily if the network did not work.
This provides the user with a Note saying that selecting an additional
bundle requires a working internet connection
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
Fixes Issue: #635
The user used to mistakenly click on items in the additonal bundles
page having to wait long duration unecessarily if the network did not work.
This provides the user with a Note saying that selecting an additional
bundle requires a working internet connection
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@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>
With the new flag we can easily instruct clr-installer to use an arbitrary
build/install, this flag eases the clr-boot-manager's CI by testing image generation
before we land new features.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Black and white theme to improve contrast
Active button reversed, bold, underline to standout
Fixes: #217
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Bring the vendor code up to latest releases.
github.com/VladimirMarkelov/clui
- Switched from release 1.2.0 to tip of master to
pick up required fix which was upstreamed.
Revert to release once 1.2.2 is released.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes: #447
Some failures with media left the progress bar active
and did not give a visual failure cue.
Add the executable to the message
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Initially the service was written to be a one-shot service
hence the need for the delay to ensure a stable network before
starting the service. Since the service was rewritten to run
in an infinite loop until installation succeeds, the delay is
no longer needed.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes: #623
If a whole disk is used that contains logical volumes, they
need to be removed before re-using the disk.
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>
Fixes: #614
Ensure we retain the selected disk from the chooser box
during refresh like setting an encryption password.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Ignore the --iso and --keep-image flags for the massinstaller
when installing onto physical media as they do not logically apply.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Ensure we do not allow the user to set options, either
via command line or in the default configuration file,
which would not be valid during an interactive installation.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Enable parsing of RAID types even though they are not
currently support installation targets.
Fixes: #609
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
If an ISO can not be generated due to multiple kernels, then
ensure that we keep the raw image file.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This reverts commit 0683fdfc64.
Mixer will instead use the --template command line options
in combination with --bundles option to create a default
YAML configuration file instead of modifying a published template.
Allow the user to override the default set of bundles on
the command line. This comma-separated list will override
either the default built-in bundle list or the bundle list
from a specified configuration file.
Note that the installer will still augment this list with
any RequiredBundle which is needed due to option selections
such as choosing a non-default keyboard or language, enabling
telemetry, or adding additional users.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Add new --template (-T) command mode which will generate
a YAML configuration file.
Attempt to improve test coverage.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
When converting an ister JSON configuration file to a
clr-installer YAML configuration file, we want to ensure
a single kernel is set. Additional kernel result in a
warning as ISO mainly due to ISO generation limitation
in the code.
Add new coverage test for multiple kernels.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Currently, ISO image generation supports only a single kernel.
Hence, skip ISO generation if multiple kernel bundles are present.
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
Do not start the clr-installer provisioning service if there
was no configuration file supplied on the kernel command line.
As this service has already masked the getty for this tty, no
login prompt will be available on this terminal. The use will
have to switch to a different virtual terminal for login access.
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>
Much of the new networking retry code is difficult to
test/emulate in a test environment -- as such, reducing requirement.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We should be using image mode when invoking clr-boot-manager
as we want changes implemented on the target image.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes: #591
When attempting to download a configuration file supplied by
the kernel command line, keep trying forever. This is generally
used by a network boot installation.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Do not wait for user input for requested reboots.
Instead offer a short countdown which can be aborted
by an interactive user if enabled by mistake.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>