EFI changes for EL7

Grub is grubx64 now instead of just grub, and partitions in
/dev/mapper don't always use p(\d+), so efibootmgr will try to
install on a partition if the regex isn't changed. This probably
also affects Fedora

Change-Id: I50f16b95c65c874f95dbd02033136dff83bac856
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1130965
Signed-off-by: Ryan Barry <rbarry@redhat.com>
Fix persistence logic

Previously the return code of a list of files which needed to be
persisted, was determined by the last file to be persisted. And even if
there was no severe issue, it could lead to a situation where the retun
code was unequal 0, which returned to a failed auto-installation.

This patch also introduces some better descriptions for failed
auto-installations.

Change-Id: I7749fb2a423283c5748cbe990374d4790cffeb99
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1120650
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
selinux: Some more rules

Needed for el7.

Change-Id: If30e1fd14e2a51a41d0e21e4aafacf17ffed470a
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1120650
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
rhevh7-post: keep files in /var/lib/puppet

Update /etc/rwtab to use files /var/lib/puppet to keep
all files under this dir. Without this patch, the dir
is empty and puppet plugin cannot locate ovirt.rb.
Thanks Ryan Barry for the catch.

Change-Id: Ida7a2ec780ca5bc28343d503052b6770278e74b7
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1128523
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
functions: Add plymouth fallback

To silence some message provide a simple plymouth fallback

Change-Id: I681b835d93aad2be1e7c8b7a25d88fe64a468489
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
Unmount partitions before we mkfs them

It seems that some partitions get held by EL7. They don't appear
in mtab, /proc/mounts, or any other location, but siphoning off
mkfs output shows it cowardly refusing because the partition is
mounted. Unmount before formatting, just in case.

Change-Id: Ib9ad90f7876137ec08f840e4b4cd649d55fe3f0e
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1095081
Signed-off-by: Ryan Barry <rbarry@redhat.com>
rhevh6-posts: removing non applying patch

mkdumprd patch from 2011 which don't apply on current mkdumprd
source code. mkdumprd seems to be dynamic enough at moment.

Change-Id: I41874c07b69674ab2e38ba3a8270213be70efb91
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>