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>
Now users may defined environment variables to be used in the image
generation. Also, these variables are passed down to the pre and post
install hook scripts.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
There're some use cases for images without kernel definition, to
pass over the configuration the user may define, kernel: none.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Be consistent with ister_gui and only add the sysadmin-basic
bundle when non-root users are added. Previous we were always
adding the sudo bundle.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Also change to using 'locale -a' to generate possible languages
installed as 'localectl' is currently broken due to the relocation
of the locales from /usr/lib to /usr/share.
Signed-off-by: Mark D Horn <mark.d.horn@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>
When the default logging is set to Info, have a baseline of
the installation steps logged.
Add additional testing to storage to ensure metrics do not slip.
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 this the user can add alias block devices and use these alias
to expand target media's Name values, i.e:
block-devices: [
{name: "target", file: "/dev/sda"}
]
targetMedia:
- name: ${target}
type: disk
...
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Simplify the cleanup code and move the SaveInstallResults() call to
the controller code, removing this knowledge from the front end
implementations.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
The mass-installer use case for image generation requires to specify
the target system version. This patch allows the configuration of
an arbitrary version.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Introduce the initial support to post-install hooks. The code also
expands a set of pre-defined variables, for now the only exposed
variable is the chrootDir (the directory where the target system is
mounted).
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
We are relying on clr-boot-manager's cmdline-removal feature which
prevents a kernel argument to be added to the boot manager kernel
entry.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
- Do not rerun network test if network known to be passing
- Run Network PopUp testing if any Network Interface is modified
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Switch to using a model PopUp window for Network testing.
This should be re-used for all network testing:
- Manual
- Change of Proxy
- Change of Interface
- Before starting Install
Added URL checking to the Proxy setting
Signed-off-by: Mark D Horn <mark.d.horn@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>