ui: Add hotkey (F12) to reset UI and log page name

In the old UI pressing F12 lead to resetting the UI. This is now also
possible with the new UI.
Additionally the name of the currently shown page is logged to the
logfiles.

Change-Id: I35c61a7fdcb5de692ed6d1e8dc0a99e4cbfe5d74
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=991267
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
Pre-compile plugin Python files so they don't get stripped

Previously, the Python files were defined as _SCRIPT in automake.
Make them into _PYTHON so they automatically get compiled, and add
the compiled files to the RPMs so image-minimizer will leave
working plugins.

Change-Id: I390ca19b1abe29f19c508a9d4a41c4221d796b30
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=988484
Signed-off-by: Ryan Barry <rbarry@redhat.com>
Remove $package-release file before creating it

When build the iso using autobuild.sh under ovirt-ndoe,
the package name will be ovirt-node-image. But in the
recipe/ovirt19-post.ks, the command:
ln -s /etc/system-release /etc/ovirt-node-image-release
creates link file ovirt-node-images-release that refers to
the /etc/system-release.

So this will cause both /etc/ovirt-ndoe-image-release and
/etc/system-release are link files and they refer to each other.

This patch remove the $package-release file anyway to avoid
refer to each.

Change-Id: I6da35c6a20de242d5c0c66ea06fc4edc07369b50
Signed-off-by: Wenyi Gao <wenyi@linux.vnet.ibm.com>
Validate sizes on storage installer page and calculate free space

Make sure users cannot proceed with values which are too large.
Additionally, dynamically update either the size of the data
partition or remaining free space, depending on whether a
checkbox to fill remaining space with the data partition is
selected or not

Change-Id: Ibde087a31909d26aef8e00b58d895567e87b12cd
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=918961
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=867843
Signed-off-by: Ryan Barry <rbarry@redhat.com>
Make "less" work properly

Make "less" work instead of spewing escape codes.

Change-Id: I6028520eea0d19f777958dfd07f29c87c428500a
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=981145
Signed-off-by: Ryan Barry <rbarry@redhat.com>
Fix always use the first one of the disk list as boot disk issue

Previously ovirt node always use the first one of the disk list
on boot_device_page as boot disk
Now fix it to use the selected disk as boot disk.

Change-Id: I1cc27143b544a228daf1278ea5bc67e6c84598c1
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=965907
Signed-off-by: hadong <hadong0720@gmail.com>
Add some extra parameters for autoinstall

Provide parameters for some of the TUI options which already
exist:
Keyboard Layout
Disable AES-NI
Enable Strong RNG
NFSv4 Domain

Change-Id: I8d539261ea262f726cc977972d986e50a92a972e
Signed-off-by: Ryan Barry <rbarry@redhat.com>
Fix auto install with "storage_init=/dev/sda,/dev/sda" failed issue

Change-Id: I700200dc612c221fcb5a3ac663bbe8f7a5e77bfc
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=961706
Signed-off-by: hadong <hadong0720@gmail.com>
Just remove bond configuration when they exist.

Change-Id: I2b5644168f332df4440b16e6b91c7b01f16cb6bd
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=995997
Signed-off-by: hadong <hadong0720@gmail.com>
Take ownership of /usr/lib/dracut/modules.d/91ovirtnode

We create this directory but previously didn't specify that in
the specfile. Add it so it gets removed if ovirt-node is
uninstalled.

Change-Id: Ieeca6126ba2e9a56f23a2f2dc708c7a41975022e
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=995714
Signed-off-by: Ryan Barry <rbarry@redhat.com>
Fix clear /etc/puppet/puppet.conf issue.

Previously when clicking "Save" button to save puppet configuration,
it will clear /etc/puppet/puppet.conf.
Now fix it as save puppet configuration info into /etc/puppet/puppet.conf.

Change-Id: Idffce430477f9d44d2a8bff12ad518b479e86648
Signed-off-by: hadong <hadong0720@gmail.com>
Change button text from “Next" to "Continue" on storage vol page
to keep same with other page.

Change-Id: Ibe330da2ba3f8033c94f2ec803600691a50643de
Signed-off-by: boh.ricky <boh.ricky@gmail.com>
network: Fix Bonding.delete_all()

Previously the class tried to read a file which is only available when
the bonding module is loaded. This could lead to an exception when there
was a "greedy" call to Bonding.delete_all() (so not checking if bonding
was enabled at all).
This is onw fixed by only reading the file when bonding is enabled.

Change-Id: Iba592a6e02fd036283fec899e9081edabc941e2b
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
persist /etc/libvirt/qemu

Libvirt's virsh define command will save vm xml in the
directory /etc/libvirt/qemu/, if it's not persisted, after
the reboot of the os , the defined vm will disapper.
This behavior is not same with the libvirt running on orther os.

Change-Id: I3e9150afd69773d3f2d213da666028b0bcba0660
Signed-off-by: boh.ricky <boh.ricky@gmail.com>
app: Small logging format change

Just print the line after the filename, not after the funcname.

Change-Id: I2c141de1873e841d29fb6e395381e587dae78358
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
Fix bond named issue

Previously when auto install it with "bond=bond0:eth1" parameter
it will create a bond named "bond=bond0"
Now fix it to create a bond named "bond0".

Change-Id: I6c9eedb0f5446662d82d43e809962a1f8707b8cb
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=992916
Signed-off-by: hadong <hadong0720@gmail.com>
Show a dialog before entering the rescue console

One of the things lost in the transition to the new TUI was an
indication/dialog before entering the rescue shell. Add it back.

Change-Id: I37bd24c89ba8f4272435aa846f658a0a06d5aa08
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=981142
Signed-off-by: Ryan Barry <rbarry@redhat.com>
Disable the TUI in rescue mode

Don't let the TUI run when in rescue mode.

Change-Id: Ie1f9d6fbd944cd9c86b7ae85e031477d7184f868
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=989811
Signed-off-by: Ryan Barry <rbarry@redhat.com>
app: Fix import

Change-Id: I43162d2cdc87f3696b906dcc0f0e11b439a061d4
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
ui: Syntax fixes

Change-Id: Ifd6342f63302c510619765209234b331974b1e51
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>