git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add direct appliance mode flag and implementation.
[libguestfs.git]
/
examples
/
hello.c
diff --git
a/examples/hello.c
b/examples/hello.c
index
a4cc43d
..
8b36ed4
100644
(file)
--- a/
examples/hello.c
+++ b/
examples/hello.c
@@
-4,6
+4,9
@@
* hello guest.img /dev/VolGroup00/LogVol00
*/
* hello guest.img /dev/VolGroup00/LogVol00
*/
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@
-24,7
+27,6
@@
main (int argc, char *argv[])
if (guestfs_add_drive (g, argv[1]) == -1) exit (1);
if (guestfs_launch (g) == -1) exit (1);
if (guestfs_add_drive (g, argv[1]) == -1) exit (1);
if (guestfs_launch (g) == -1) exit (1);
- if (guestfs_wait_ready (g) == -1) exit (1);
if (guestfs_mount (g, argv[2], "/") == -1) exit (1);
if (guestfs_mount (g, argv[2], "/") == -1) exit (1);