firewall: Fix plain iptables logic

Previously the port was opened but this changed wasn't saved. This case
lead to a situation where the iptables service got restarted and
overwrote/closed the previously opened ports.
Now the configuration is saved (and persisted) after a port got opened.

Change-Id: I778271bb878f78d3834976b0476b5c8a42c5041f
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1007417
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
installer: Fix EFI boot entry removal

Previously removing EFI entries during a reinstall failed due to an
incorrect call to efibootmgr.
This patch adds a wrapper around efibootmgr and provides an API to add
an remove EFI boot entries.

This shall prevent incorrect function calls to efibootmgr.
The new API is now also used in the legacy (installer) code.

Change-Id: I761ac056f4a168eefbc49319c0ff66239a9ded38
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=950553
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
remove existing efi entries when uninstall rhev-h in efi boot

Change-Id: Ib1f63a9a0fdb9fb1c6211ebd8247459ddcda46db
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=950893
Signed-off-by: hadong <hadong0720@gmail.com>
Fix EFI boot entry shown "fedora" issue

Actually the EFI boot entry should show "oVirt Node Hypervisor",not
"fedora" value.
Also this patch fixed using wrong loader_filename issue.
(For fedora, the loader_filename should be "grubx64.efi."
 For rhel, the loader_filename should be "grub.efi")

Change-Id: Ia326f049cbea64e646a974105f265a22c45f315f
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1004120
Signed-off-by: hadong <hadong0720@gmail.com>