generator: Fix whitespace.

(cherry picked from commit 559bd48960f795dc59d889e5776f545f2e0d494a)
(cherry picked from commit a7f6822c1f05e2880900f997b8b487f76208354e)
generator: Fix the case where a daemon function has one FileIn/FileOut parameter and no other parameters.

The FileIn/FileOut parameters are not passed through to the daemon.
Previously we generated incorrect RPC code (an empty 'struct
guestfs_<fn>_args') because we didn't account for these FileIn/FileOut
parameters correctly.

(cherry picked from commit e31c32ce1bc87d164103e79288effc64bb41181f)
(cherry picked from commit 1af2e2c9de6920fb1ef9c83d9069cf9a573c5b8f)
src/file.c: Be sure to call guestfs___lazy_make_tmpdir before using g->tmpdir.

Although g->tmpdir is always set after launch, and none of these calls
should be used before launch, it's always possible that a caller would
use one of these APIs before launching the handle.

If guestfs___lazy_make_tmpdir is not called, then g->tmpdir is NULL,
and the constructed filename would look like "(null)/...".

In fact it's possible to observe this error (although it seems to have
no especially bad effects):

  $ strace guestfish ls / |& fgrep '(null)'
  unlink("(null)/ls1")     = -1 ENOENT (No such file or directory)

(cherry picked from commit 1937108a4a6070750f0d636f7dcc8725441cc4eb)
(cherry picked from commit 749a2ccbf12865707927c34bc7d6b296bfa1717e)
resize: Link to information about dracut-modules-growroot.

(cherry picked from commit fb282e677c015de65627790a02aceb6ed264ed80)
(cherry picked from commit 64b67377b6536b09832ae7ee35573ce44c628365)
daemon: cap-get-file: Return empty string if no capability on file (RHBZ#989356).

Return an empty string (instead of an error) if no capabilities are
set on a file, and document that in the API.

(cherry picked from commit c663ab3bb9ab02fb3ca6209333c2d5402081c4de)
(cherry picked from commit 01df523fffebfb586baac869f3e4febb8d79ce45)
resize: Move isatty_stdout function to separate module (TTY.isatty_stdout).

It was jammed into the Progress module just for convenience.

(cherry picked from commit b56990ddf8aa4dc4db3da592783acfe055c05534)
(cherry picked from commit 93daf42b52446eb442c595592a053caaa740ba42)
internal: Add CLEANUP_XMLFREEURI (cleanup function for xmlURIPtr).

(cherry picked from commit 0e1ba00059b5ebbca2e137f2685b2eb65ed33b13)
(cherry picked from commit acba583d18644bb0bb120f5c2302254c65d981dc)
FAQ: Common problem with Debian is not running update-guestfs-appliance.

(cherry picked from commit 9268f1487970eb9884ba674ab75dc99f91adc0a7)
(cherry picked from commit 5bd7e6cca1c404d4a54f9ce3b231052bd98d86b4)
FAQ: Tips about using direct backend and fixed appliance on Fedora/RHEL.

(cherry picked from commit 0c512a52bdc2a88296d04900625822b34d567112)
(cherry picked from commit 790852397edf0c2a343e1125148a6909d0e4bb94)
resize: Mark isatty function as "noalloc".

This turns it into an ordinary C call without the unnecessary [in this
case] GC frame overhead.  See:
http://camltastic.blogspot.co.uk/2008/08/tip-calling-c-functions-directly-with.html

(cherry picked from commit 3d39549ded3e05df929547bb65ce620e6487a81b)
(cherry picked from commit a08b4304d1fc0a02a18daa84d6747f432f495b67)
resize: Mark progress bar functions as "noalloc".

Avoids GC overhead and turns these into simple C calls.  See:
http://camltastic.blogspot.co.uk/2008/08/tip-calling-c-functions-directly-with.html

(cherry picked from commit 67fd809ca3ec711d80e69ab32646899e7ca047eb)
(cherry picked from commit 28049a4df751a954674439368788d5b7723e2c5c)
./run: Omit timeout -k option on RHEL 6.

If timeout doesn't have the -k option, don't use it.

(cherry picked from commit 8d68f1c5ceb5ac613393654bde58127e50c0f7bf)
(cherry picked from commit 2809754504ab5e7b7e5c8dff7c1e37f1568c8475)
launch: direct: Add drives after machine parameters.

This is just code motion.  It should affect the semantics of the code,
nor how the appliance VM is created.

(cherry picked from commit 568368cdf524d3ef96fb3905e39cc859c4bb4258)
(cherry picked from commit 0fdc3f478d32e8c3d13df4f53e88e6eb3cad15f9)
augeas: Improve error reporting.

Display all the information from the handle about errors.

(cherry picked from commit f26a0407d2a61ed334b4a9d42b1269feb3cab76e)
(cherry picked from commit fde27df3c98ca65a90c82f8d82c9186777b7bb7f)
Update TODO file.

(cherry picked from commit f6b2efcdffe8688fc415b3f1cd9d608dd396f253)
(cherry picked from commit fd32ca199da1bd30ca8024efe49bd571653ea214)
Update Transifex domain name from .net -> .com.

(cherry picked from commit 56f613b13003b2ef44b25da360c5dac6eb5b0c71)
(cherry picked from commit 7d1c54be145bd8f87d87cfc887c3647ffed723eb)
Fix parsing of boot flag in do_part_get_bootable()

The code in do_part_get_bootable() assumes that if a partition has the
bootable flag set, then that is the only flag.  It compares the entire
flags field with the string "boot".  However, the boot flag isn't
always the only flag.  For instance, POWER systems typically have a
bootable partition of type 0x41 (PPC PReP boot), which parted -m
displays as:

# parted -m -- f18.img unit b print
BYT;
/root/f18.img:16106127360B:file:512:512:msdos::;
1:1048576B:5242879B:4194304B:::boot, prep;

That is, the flags field contains "boot, prep", and thus libguestfs
fails to see that this partition is bootable.  Ultimately this causes
virt-resize to fail to set the bootable flag on the boot partition of
the destination image, resulting in an image that won't boot.

This patch fixes the problem by searching for the string "boot" within
the flags field, instead of comparing the whole flags field.

(cherry picked from commit 7c535c501b1ce131ae98dd948b22fc260d659d1b)
(cherry picked from commit 6d80000dd69c2fb517ff294e1fb1fab7add578e6)
daemon: Close augeas, hivex handles in unmount_all.

This is also called implicitly from internal_autosync, ensuring that
exit won't fail because of an open handle.

libguestfs: error: internal_autosync: umount: /sysroot: umount: /sysroot: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

Cherry picked from commit ce6e5738fc4ca9533e73cfe6b5fe3db872b7ec9d
and modified to remove references to the journal.

(cherry picked from commit 4d5da455cca1e70810af868c523a872c746f45ec)
appliance/init: Display uname -a in debug output.

Useful for debugging kernel / architecture issues.  Note this
has no effect if debugging is disabled.

(cherry picked from commit 6c2fad11ac9a68dcfd42ee18681dc9a552625be9)
(cherry picked from commit 9fc75d4133840b213362da3d27abeed936e4dc9a)
daemon: Remove unnecessary sysroot_path (selinux).

This fixes commit 72afcf450a78b7e58f65b4a7aaf94d71cd25fca5.

(cherry picked from commit 7367729ec7a5d016878dd00b32cce45cec372931)
(cherry picked from commit 576379a3478ced0483102c797935b57f454a1f7d)