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>
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>
When Advanced was re-using the Warning label to display the
configuration it was not resetting the warning colors properly.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Removed exemptions for gocyclo lint for all
storage code except funcs: UnmarshalJSON
& NewDiskConfigPage have inevitable
function exemptions
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
a.) Break storage code into smaller readable units with each structure
and operations around it in the same file
b.) Remove commented code
c.) Rename storage.go, storage.go to
block_devices.go
block_devices_ops.go respectively
d.) Remove unused function FreeSpace
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
Need to ensure we download any updated vendor code
and pull the changes into our vendor path for check-in.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This is a good regression test to ensure that all of the previously
released DevOps images will still build correctly with the latest
clr-installer code.
Two new make targets.
check-all-images:
Run a long time as each is built in parallel
check-all-images-screen:
Run all the image builds using screen which can
be detached and allowed to run in the background.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We only want to offer the latest LTS kernel which is a
meta bundle around the official latest kernel. User can
manually switch to any available kernel after install.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Use the new --skip-validation-size flag to ignore the size
sanity minimums during the user interface installations.
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>
We need to know if we are legacy mode before we parse the disk
partition information as legacy mode trigger different checking.
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>
We were attempting to run the telemetry command to opt out
on the target when the binary was not present.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes several problems in the output of the log file.
- Escaping percent signs
- Wrong format for data type
- Unnecessary format strings
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
1.) Move some code to test so that they are not part of executable
2.) Remove unused code
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@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>