258 Commits
Author SHA1 Message Date
Mark D Horn 13ca3159e7 tui: Disable console messages
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>
1.2.2
2019-04-25 15:44:46 -07:00
Mark D Horn 3945c9aeb2 network: Add support for Network Manager
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>
1.2.1
2019-04-19 10:57:15 -07:00
Mark D Horn 7fe0567d68 tui: Rename Manual to Advanced
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
1.2.0
2019-04-19 08:56:28 -07:00
Mark D Horn e0693dd2ec ui: Change Full Disk to Entire Disk
User feedback suggested that Full disk was not clear enough

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-18 12:48:36 -07:00
Mark D Horn 7b221f8a95 ui: change Dismiss to OK
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>
2019-04-18 12:48:36 -07:00
Mark D Horn 658dcb9866 debug: Remove extra debug
A lot of leftover detailed debug during engineering which
no longer needs to be present.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-18 12:48:36 -07:00
Mark D Horn a904be6d09 storage: Size checking in xB, not xiB
Fix the error checking to compare against human readable size

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-18 12:48:36 -07:00
Mark D Horn b45bf00a04 storage: bug fix for the partition name
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-18 12:48:36 -07:00
Mark D Horn c597f7a156 tui: refactor for manual partitioning
Remove the call to the external tool in favor of native ui.

separate mkpart and format flags

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-18 12:48:36 -07:00
Mark D Horn 49529add0c storage: refactor for manual partitioning
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>
2019-04-18 12:48:36 -07:00
Mark D Horn ee6ba0e079 tui: user feedback on beta
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-18 12:48:36 -07:00
Mark D Horn 1222c2dc45 tui: Simplify Install Media selection
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>
2019-04-18 12:48:36 -07:00
Mark D Horn 95baf649de tui: Enable enter for list selection
Allow the user to hit enter on an item in a listbox to select
and Confirm the choice.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-18 12:48:36 -07:00
Mark D Horn d2a6816339 tui: Refactor constants for user manager
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>
2019-04-18 12:48:36 -07:00
Mark D Horn 3334c1ff67 storage: Identify Install Target types
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>
2019-04-18 12:48:36 -07:00
Mark D Horn 38637f26f4 log: Add method to get the logfile name
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-18 12:48:36 -07:00
Mark D Horn 98af1958c8 storage: Do not panic for partprobe issues
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>
2019-04-18 12:48:36 -07:00
Mark D Horn 5c37d53f1f storage: Improve error message for mount
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>
2019-04-18 12:48:36 -07:00
Mark D Horn 9454805bf7 storage: Correct comment spelling
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-18 12:48:36 -07:00
Mark D Horn 794d4b9f0a tui: Ensure TUI crashes shows Issue filing info
The TUI has a local panic and never displayed the information
about how to log an Issue in GitHub.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-18 12:48:36 -07:00
Mark D Horn d62ef607aa Script for show all imports
We use this to review the imported packages are part of
our release review process.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-16 22:56:16 -07:00
Mark D Horn 685ae93433 swupd: bug fix for state dir init
The initial value will be set incorrectly if the swupd mirror site is set.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-22 12:05:48 -07:00
Mark D Horn 5dbee42d7d Fix Network Interface Copy
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>
1.1.8
2019-03-12 15:17:58 -07:00
Mark D Horn 786a1f27b5 Download User Messages
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>
2019-03-11 17:11:55 -07:00
Mark D Horn d2c1dc7887 Add two year specific LTS kernels
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>
2019-03-08 15:49:39 -08:00
Mark D Horn 759c08452a Drop the Production Kernel from selection options
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-08 15:49:39 -08:00
Mark D Horn 3ff5c00a50 Chroot systemctl command for disable auto-update
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>
1.1.7
2019-03-06 18:22:25 -08:00
Mark D Horn f424bdb143 Track user selected bundle separately
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>
2019-03-06 13:20:26 -08:00
Mark D Horn a53dc00958 Fix setting static IP
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>
2019-03-06 11:27:53 -08:00
Mark D Horn 13a7115322 Enable use of arrow keys for network interface
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>
2019-03-06 11:27:53 -08:00
Mark D Horn 9d79a00618 Copy file with same permissions as source file
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-06 11:27:53 -08:00
Mark D Horn 673a8052be Add comment for source of hostname checking
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-06 11:27:53 -08:00
Mark D Horn 216679d861 Fix desktop image size for USB media
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-06 09:53:17 -08:00
George T Kramer c2773b0e78 Chroot when enabling clr-installer service
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>
2019-03-05 18:17:33 -08:00
Reagan Lopez f61d7092ab Add support for ister json config
- 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>
2019-03-05 13:55:44 -08:00
Mark D Horn e1e779ce98 Ensure HOME is set for post hook as root
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>
2019-03-05 11:01:55 -08:00
Mark D Horn b935971cb1 Makefile updates for go 1.12
Need to force reinstalling the linters after the update
to golang 1.12.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-05 11:01:55 -08:00
Mark D Horn 85cd7d5fc4 Fix permissions before removing directories
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>
2019-03-04 14:28:41 -08:00
Mark D Horn 6a27623a82 New telemetry defaults
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>
2019-03-04 14:28:41 -08:00
Mark D Horn b5f66460cc Ensure properly partition alignment
We should use 0%, not 0 for the start location
to ensure proper partition alignment.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
1.1.6
2019-02-27 11:47:02 -08:00
Mark D Horn 80f226ae72 Developer Desktop YAML File
For developer to build a desktop image with the locally
modified installer code.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-02-22 17:26:44 -08:00
Mark D Horn e904f1139a Ask the user to submit bugs
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>
2019-02-19 09:28:18 -08:00
Mark D Horn 8c99371179 Relocate preConf file name for logging use
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-02-19 09:28:18 -08:00
Mark D Horn d7c04bba06 Disable the root account if Admin set
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>
1.1.5
2019-02-14 16:59:43 -08:00
Mark D Horn 4667cb8dac New Option to clean-up swupd state directory
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>
2019-02-14 16:59:21 -08:00
Mark D Horn ee86c38d25 Chroot first, then run useradd
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>
2019-02-05 09:01:42 -08:00
John Andersen 454e71e469 docs: Fix typo in Readme.md
* Removed 'n' from clearnlinux, should be clearlinux

Signed-off-by: John Andersen <john.s.andersen@intel.com>
2019-01-31 11:05:31 -08:00
Mark D Horn e5e6aa2b71 Lower coverage for model
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>
2019-01-28 18:40:46 -08:00
Mark D Horn 4735fe9db0 Use LTS Kernel for VirtualBox Installs
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>
2019-01-28 18:40:46 -08:00
Mark D Horn 0e2ec4183c Clarify version used by default
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
1.1.4
2019-01-22 16:56:26 -08:00