Fixes: #300
Attempt to disable console messages before launching the TUI,
and re-enable upon completion.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Now check for which service is handling wired network interfaces.
Needed by the TUI which still handles static IP configurations for
wired connections.
TODO: Once NetworkManager is the new OS default, we can explore
configuring wireless interfaces via the TUI as well.
TODO: Consider change the other systemctl calls to use new dbus.
Dropping coverage requirement for this build
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Some user confusion from a Dismiss button when getting a warning
message about data loss on disks.
Change all Dismiss buttons to OK
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Always store the current partition table, with free space,
in the disk block device information.
Find free space from the already loaded partition table.
This information will be used for manual disk partitioning.
Use separate mkpart and format flags
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Remove the details disk manager in favor of a simpler interface
to avoid accidental data loss during install.
Create a bash script to run a disk util and relaunch the installer.
- Try using cfdisk instead of cgdisk, but easy to switch if necessary
- Save the current state as YAML for restore user selections
- Run partprobe to ensure partition changes are visible
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
The names are shared in the tui package and were not specific enough
as discovered when removing columnCount from the disk manager.
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>
We will log the message, but not crash the program as most
non-zero error was really warning about the partition table
or media details.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Show the device name and file system type in the error message.
We have had mapping issue on some device names.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes Issue: #261
Pull Request #236 introduced a bug where local network interfaces
are always copied to the target media.
This PR correct this by only copying when copyNetwork is set to
true; this is enabled in the UI when the users changes a network
interface (for static).
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
New functionality to download Pre and Post Installer messages
TODO: Display the messages as pop-ups
- Need to use system curl command to handle proxies for now
Refactoring for enabling:
- Moved FetchRemoteConfigFile from conf to network
- Move code for Clear Linux Version parsing until a utility function
which is called early in the flow for reuse
Now that use external curl FILE protocol passes.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
The kernel-lts latest will remain as a meta bundle which
will be the latest LTS support kernel; VirtualBox uses this.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes: 255
We see build problems due to new releases of systemd, so
only use it in chroot versus the --root option.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes Issue: #242
Only show user selected bundles on the summary menu item for
bundle selection; not core, required bundles.
Make the latest user bundle changes more evident by prepending
them to the list of bundles to install.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We also need to set either proxies or the
DNS search domain to enable pacdiscovery
if network testing does not pass.
Need to add:
systemctl enable pacdiscovery on target
Ensure we copy the /etc/systemd/network settings
- Fixed bug in showing dns server per interface
- Add new DNS Domain field per interface
- Mask out (skip) Wireless and Bridge interfaces
- Update Network Interface TUI
- Added DNS Domain
- Widen screen for error messages
- Moved Error labels before field
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We were missing the arrow keys which meant only tab was
working to switch fields for the network interface.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
When using the --root option with systemctl, libsystemd for the systemd
in the chroot will be resolved on the host. In cases where the systemd
in the chroot is a different version from the systemd on the host, this
will result in a library not found error. Need to chroot when eanbling
clr-installer service to avoid this problem.
Signed-off-by: George T Kramer <george.t.kramer@intel.com>
- The new -j flag detects ister json config format and converts it to yaml
- The existing -c flag also detects ister json config format, converts it to yaml
and continues as usual
- Handles the ister "rest" option for physical targets
- Handles multiple targets
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
Even though we are running as a login shell, the HOME is
not being set and hence neither is GOCACHE which is required
for golang 1.12 and beyond.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Due to recent updates to tmpfs, we can no longer remove files
without write permission even if we are the owner.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Update the latest release telemetry configuration file
and update the post install hook with the new default
and new maximum.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Provide directions for submitting bugs including what
data to include and how to enable debug logging.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
If any accounts are added and set to have Admin privileges
via sudo, then disable the root account by locking it.
Also lock the root account if SSH Keys are set, but no password.
Added checking if the account exists (system accounts like root)
to use usermod not useradd. Also use getent to find the user's
home directory and not assume /home (not true for root).
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes#215
We already default to placing the swupd state cache directory
in the installation target. This change implements the only
missing part of the request to allow removing the state directory.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes#209
To ensure we are using the proper libraries, first chroot and
then run the useradd and chpasswd commands instead of relying
upon the --root option.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We add an if statement to the model for the VirtualBox change
which is slightly lowering the coverage number. We won't be
able to add a VB test case, so lowering the default coverage.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
If running interactively and in a VirtualBox environment
force the default to be the kernel-lts.
Fixes#203
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>