When executing interactively, text-base or graphical, we want
to always copy any local /etc network configuration files to
the target system.
If the user has made customer network settings, usually with
nmcli/nmtui for console, or NetworkManager on the desktop, these
will want to be propagated to the target.
Add command line option to avoid network copy.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Add a new command line option --system-check.
When run with this option, run a system chcker and exit with a 0 or 1
for passing/failing.
Checks for required CPU features using procfs and EFI firmware using
sysfs. Prints status and results to stdout.
Signed-off-by: Brian J Lovin brian.j.lovin@intel.com
Create the command line argument and configuration file changes
to support generating an ISO from the raw image.
TODO: Integrate the ISO generation code
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 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>
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#10
Enable encrypted partitions for all but /boot.
A single passphrase is used for all partitions which enable encryption
expect swap, which currently uses a random password each boot.
NOTE: If we need to support a large swap for laptop suspend/restore, we
should change from a random passphrase to the same known passphrase.
/etc/crypttab will attempt to use either the disk label or the
UUID to identify the disk instead of the physical disk name.
Swap partition would normally loose its UUID or Label each boot
due to dm-crypt and mkswap overwriting the connect. To maintain
identification of the partition, we use a trick from here:
https://wiki.archlinux.org/index.php/Dm-crypt/Swap_encryption
of creating a small (1M) ext2 partition with label at the beginning
of the swap partition, then use an offset in the /etc/crypttab to
prevent overwriting this information.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Add the swupd's --format, --contenturl and --versionurl arguments.
These arguments are mapped with the --swupd prefix such as:
--swupd-format, --swupd-contenturl and --swupd-versionurl
And are used for constrained environments dealing with local installs,
specially with image generation in a network isolated environment.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
With this argument (either -S or --stub-image) we create the image
- if that's the case - and create the target file systems but don't
actually install content.
It's useful for pre-release validation where the content is generated
and dealt by the release tooling.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
To enable debugging of an installation the log level may need to
be set via a kernel parameter as the installer should launch upon boot.
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 the --block-device command line argument the user can remap
or add an entry to configuration file's block-devices definition.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
- Hid the makefile comment
- Catch additional test case that need to clean up the
temp downloaded file
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Preventing future confusions (when we implement dnf support) rename
the --mirror argument to --swupd-mirror and start creating a namespace
for the arguments.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Ensure both the main code and test clean up after themselves.
Testing for changes in the /tmp directory done in the Makefile
to ensure the testing is done outside of the code itself.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This patch fixes the tests coverage regressions and add a small fix
to the script where it doesn't remove the temporary coverage report
file if it fails. Now it can be enabled on the CI and avoid adding
new testsuite regressions.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
FPrintf's return wasn't being checked, this patch makes the linter
happy by checking the error condition.
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>