search for: build_appliance

Displaying 8 results from an estimated 8 matches for "build_appliance".

2017 Apr 25
0
Re: [PATCH] appliance: reorder the steps to search for appliance
...com> > --- > lib/appliance.c | 22 +++++++++++----------- > 1 file changed, 11 insertions(+), 11 deletions(-) > > diff --git a/lib/appliance.c b/lib/appliance.c > index f12918573..06ee06f71 100644 > --- a/lib/appliance.c > +++ b/lib/appliance.c > @@ -137,16 +137,6 @@ build_appliance (guestfs_h *g, > CLEANUP_FREE char *path = NULL; > > /* Step (1). */ > - r = find_path (g, contains_supermin_appliance, NULL, &supermin_path); > - if (r == -1) > - return -1; > - > - if (r == 1) > - /* Step (2): build supermin appliance. */ > -...
2013 Sep 06
1
[PATCH] arm: appliance: Add support for device trees (dtb's).
This is the libguestfs companion patch to: https://www.redhat.com/archives/libguestfs/2013-September/msg00045.html Rich.
2016 May 12
0
[PATCH 3/4] appliance: Move code for creating supermin appliance directory to tmpdirs.c.
...rd, char **appliance); +static int build_supermin_appliance (guestfs_h *g, const char *supermin_path, char **kernel, char **initrd, char **appliance); static int run_supermin_build (guestfs_h *g, const char *lockfile, const char *appliancedir, const char *supermin_path); /** @@ -133,7 +133,6 @@ build_appliance (guestfs_h *g, char **appliance) { int r; - uid_t uid = geteuid (); CLEANUP_FREE char *supermin_path = NULL; CLEANUP_FREE char *path = NULL; @@ -144,7 +143,7 @@ build_appliance (guestfs_h *g, if (r == 1) /* Step (2): build supermin appliance. */ - return...
2017 Apr 25
0
Re: [PATCH] appliance: reorder the steps to search for appliance
...). > I was faced with the problem that if in appliance directory there is > supermin.d then libguestfs is trying to build appliance. Even if > supermin.d is empty, even if libguestfs was built with options > --disable-appliance --disable-daemon. But as it turned out, the > behaviour build_appliance() is contrary to the documentation. Can you see what: guestfish get-path prints? Are you setting LIBGUESTFS_PATH at all? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Wind...
2016 Jul 22
1
[PATCH] static const char *str -> static const char str
...char *kernel_name = "vmlinuz." host_cpu; -static const char *initrd_name = "initramfs." host_cpu ".img"; +static const char kernel_name[] = "vmlinuz." host_cpu; +static const char initrd_name[] = "initramfs." host_cpu ".img"; static int build_appliance (guestfs_h *g, char **kernel, char **initrd, char **appliance); static int find_path (guestfs_h *g, int (*pred) (guestfs_h *g, const char *pelem, void *data), void *data, char **pelem); diff --git a/test-tool/test-tool.c b/test-tool/test-tool.c index ad1601c..a5297ba 100644 --- a/test-tool/test-to...
2016 May 12
7
[PATCH 0/4] lib: qemu: Memoize qemu feature detection.
Doing qemu feature detection in the direct backend takes ~100ms because we need to run `qemu -help' and `qemu -devices ?', and each of those interacts with glibc's very slow link loader. Fixing the link loader is really hard. Instead memoize the output of those two commands. This patch series first separates all the code dealing with qemu into a separate module (src/qemu.c) and
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2016 Mar 07
2
[PATCH v2] Use less stack.
...{ data_conns[i].h = NULL; data_conns[i].nbd_pid = 0; diff --git a/src/appliance.c b/src/appliance.c index dbde35e..d7cc60b 100644 --- a/src/appliance.c +++ b/src/appliance.c @@ -39,8 +39,8 @@ static const char *initrd_name = "initramfs." host_cpu ".img"; static int build_appliance (guestfs_h *g, char **kernel, char **initrd, char **appliance); static int find_path (guestfs_h *g, int (*pred) (guestfs_h *g, const char *pelem, void *data), void *data, char **pelem); -static int dir_contains_file (const char *dir, const char *file); -static int dir_contains_files (const char *d...