Change the AutoUpdate model type from bool to boolset to account
for default of true and state if the value was explicitly set.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Refactor the boot partition login to central code.
Search all target install media for the boot partition.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
New default is the creation of a /var/swapfile if not
swap partition is explicitly defined in the YAML file
or via Advanced Configuration.
Now use and report media sizes in XiB
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes: #517
Enable the possibility of no /boot partition in legacy mode.
- add warning if no /boot and legacy
Warn the user that installing in legacy mode without a /boot
partition means the install will never boot in UEFI mode.
- Force off 64bit mode
When an ext file system is used for the /boot content
(no /boot partition, and booting legacy mode) we need to
disable 64bit flag or the image file system not boot.
https://wiki.syslinux.org/wiki/index.php?title=Filesystem#ext
- Blocked use of XFS due to partition table requirement to use MBR.
- Do not allow encryption of / w/o /boot
Refactor validation code for reuse by both standard and advanced
disk partitioning. Add new standard Desktop and Server wrapper
functions.
Move validation to common function, remove from Find Targets, and
remove redundant validation function.
Enable the skip size for advanced partitions.
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>
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>
Now printPrefix is concatenated into the progress bar description. The
printPrefix is only intended for the mass installer, so it is removed
from the gui/tui progress bar descriptions.
Signed-off-by: John Akre <john.w.akre@intel.com>
The VerifyWithBundles function is used to install contents into the
target, download offline contents, and to create the initrd for the ISO.
Now, a prefix string will be added to the output of these commands to
specify which step VerifyWithBundles is running.
Signed-off-by: John Akre <john.w.akre@intel.com>
Change InstallSelected to be a map with the key being
the name of the TargetMedias from the model to support
installing across multiple disks.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Safe: gpt disk with sufficient space
Destructive: All media (expect mounted)
Modify: all gpt disks
When adding new partitions, ensure we store the new
partition number and update the device name.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
When creating images it's useful to have a --swupd-state to provide
an state dir outside the image so we don't duplicate the target's
content.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
With this we print only the new step getting started - not printing
the actuall progress - if the process is piped/redirected.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Simplify the cleanup code and move the SaveInstallResults() call to
the controller code, removing this knowledge from the front end
implementations.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
The mass-installer use case for image generation requires to specify
the target system version. This patch allows the configuration of
an arbitrary version.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
For data model validation we start using the specialized ValidationError
to report that kind of problem. In that situation in the main program
we avoid panic'ing but nicely report the model validation issue and
reporting exit status 1.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@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>