- Add suspend lvm state for offline volumes.
- Need to check all children for possible install targets.
- LVM always written in /etc/fstab with UUIDs
- Enable logging for all extra selected bundles.
- controller: Add clr-init with lvm usage
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We were wrapping this in a error with trace back data
which puts a misleading message into the log file.
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>
Legacy mode checks for root can not be overridden with
skipping validation checks, as it isn't supported.
Enabled the use of ext4 for boot with undocumented
validation override.
Additional test cases.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
When adding the required options to mkfs for legacy
mode on ext, an extra null was being added when
options field was empty in the YAML.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
a.) By default, block destructive install affecting other disks
b.) Add way to report effects on other disks
c.) Add force-install option
d.) Add Cleanup progress
e.) Fixes
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@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>
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>
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 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>
A recent change in Clear Linux OS resulted in partprobe no longer
processing loop back devices by default. Adding --partscan to
losetup ensures we read the partition table changes.
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>
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>