appliance: remove duplicate packages in OpenSUSE, Frugalware, Mageia

From some lists of distro-specific packages, remove the ones that
appear already in the common list.
appliance: move e2fsprogs as common for all distros

All distro-specific sections have it, so just make it really common.
v2v: Move initialization of Augeas after inspection housekeeping.

Just cleanup, it should have no effect on the way that the
conversion works.
v2v: Clean the RPM database early on (RHBZ#1143866).

If the RPM database in the source guest is corrupt, then subsequent
operations will fail randomly.

Old virt-v2v appears to have avoided this by cleaning the RPM database
very early on.  When translating the code I inadvertantly moved this
cleanup to a later stage -- in particular, after inspection of kernels
was done which requires running rpm commands.  Move this back to the
start.
fish: Restore text to default when exiting (RHBZ#1144201).

The escape sequence \e[0;30m sets the colour to black.  This is fine
if you use a black-on-white terminal, but fails rather badly if you
use a white-on-black terminal.

Instead use the escape sequence \e[0m which restores the terminal to
the defaults, and works in both cases.
resize: convert sectsize to int64

Because sectsize is used as int64 everywhere.

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
add function div_roundup64

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
resize: add function print_summmary

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
resize: add function copy_partition

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
resize: add function set_partition_bootable_and_id

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
resize: add function expand_partition_content

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Version 1.27.50.
RHEL 7: Emphasize libguestfs-winsupport package (RHBZ#627468).

This RHEL-only patch changes the error messages when the
inspection code cannot find an operating system inside the guest
image.  For a Windows guest this may happen because the user has not
installed the separate 'libguestfs-winsupport' package.  Therefore we
emphasize that the user may need to install this package.

Notes:

(1) In RHEL there are two pieces of inspection code, the old Perl code
(deprecated upstream) and the new C core inspection API.  Therefore
this patch has to touch two places with essentially the same change.

(2) This patch doesn't try to be clever and detect if it was a Windows
guest.  This should reduce the chance of failure.

Output from (Perl) virt-inspector now looks like this:

 $ virt-inspector disk.img
 No operating system could be detected inside this disk image.

 This may be because the file is not a disk image, or is not a virtual machine
 image, or because the OS type is not understood by virt-inspector.

 If you feel this is an error, please file a bug report including as much
 information about the disk image as possible.

 RHEL notice
 -------------
 libguestfs will return this error for Microsoft Windows guests if the
 separate 'libguestfs-winsupport' package is not installed. If the
 guest is running Microsoft Windows, please try again after installing
 'libguestfs-winsupport'.

Output from guestfish (ie. C core inspection API) now looks like this:

 $ guestfish -i disk.img
 guestfish: no operating system was found on this disk

 RHEL notice
 -------------
 libguestfs will return this error for Microsoft Windows guests if the
 separate 'libguestfs-winsupport' package is not installed. If the
 guest is running Microsoft Windows, please try again after installing
 'libguestfs-winsupport'.
RHEL 7: Remove libguestfs live (RHBZ#798980).

This isn't supported in RHEL 7.
RHEL 7: Remove 9p APIs from RHEL (RHBZ#921710).
RHEL 7: Disable unsupported remote drive protocols (RHBZ#962113).

This disables support for unsupported remote drive protocols:

 * ftp
 * ftps
 * http
 * https
 * tftp
 * gluster
 * iscsi
 * rbd
 * sheepdog
 * ssh

Note 'nbd' is not disabled, and of course 'file' works.

We hope to gradually add some of these back over the lifetime of RHEL 7.
RHEL 7: Remove User-Mode Linux (RHBZ#1144197).

This isn't supported in RHEL 7.