Richard W.M. Jones
2010-Oct-26 09:46 UTC
[Libguestfs] [PATCH] appliance: Remove repo from appliance filename (RHBZ#638901).
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora -------------- next part -------------->From 2e0dca6f12812bd3d7e58d725931fe9ae1c0c7de Mon Sep 17 00:00:00 2001From: Richard W.M. Jones <rjones at redhat.com> Date: Tue, 26 Oct 2010 10:03:50 +0100 Subject: [PATCH] appliance: Remove repo from appliance filename (RHBZ#638901). There's no need to have the appliance filename contain the repository name it was built from, and this change gives downstream users more freedom to mix and match libraries and appliances if they want to. --- appliance/Makefile.am | 4 ++-- appliance/make.sh.in | 4 ++-- appliance/update.sh.in | 6 +++--- src/appliance.c | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/appliance/Makefile.am b/appliance/Makefile.am index 172f0cf..0abd698 100644 --- a/appliance/Makefile.am +++ b/appliance/Makefile.am @@ -47,8 +47,8 @@ superminfs_DATA = \ endif # Don't change these names - they must be the same as in '*.sh' scripts. -INITRAMFSIMG = initramfs.$(REPO).$(host_cpu).img -VMLINUZ = vmlinuz.$(REPO).$(host_cpu) +INITRAMFSIMG = initramfs.$(host_cpu).img +VMLINUZ = vmlinuz.$(host_cpu) # This is for building the normal appliance: $(INITRAMFSIMG) $(VMLINUZ): $(top_builddir)/initramfs/fakeroot.log diff --git a/appliance/make.sh.in b/appliance/make.sh.in index efd1f46..36bcd6c 100755 --- a/appliance/make.sh.in +++ b/appliance/make.sh.in @@ -26,8 +26,8 @@ set -x if [ "@DIST@" = "REDHAT" ]; then cd @top_builddir@ # Decide on names for the final output. These have to match Makefile.am. - output=appliance/initramfs. at REPO@. at host_cpu@.img - koutput=appliance/vmlinuz. at REPO@. at host_cpu@ + output=appliance/initramfs. at host_cpu@.img + koutput=appliance/vmlinuz. at host_cpu@ rm -f $output rm -f $koutput diff --git a/appliance/update.sh.in b/appliance/update.sh.in index 90d6394..98d785e 100755 --- a/appliance/update.sh.in +++ b/appliance/update.sh.in @@ -25,7 +25,7 @@ set -e if [ "@DIST@" = "REDHAT" ]; then cd @top_builddir@ - output=appliance/initramfs. at REPO@. at host_cpu@.img + output=appliance/initramfs. at host_cpu@.img # Create the init script. @FEBOOTSTRAP_INSTALL@ initramfs appliance/@top_srcdir@/appliance/init /init 0755 root.root @@ -40,8 +40,8 @@ if [ "@DIST@" = "REDHAT" ]; then elif [ "@DIST@" = "DEBIAN" ]; then cd @top_builddir@/appliance - output=initramfs. at REPO@. at host_cpu@.img - vmlinuz=vmlinuz. at REPO@. at host_cpu@ + output=initramfs. at host_cpu@.img + vmlinuz=vmlinuz. at host_cpu@ rm -f debian/debirf-libguestfs_ at REPO@_.cgz ln -sf debian/debirf-libguestfs_ at REPO@*.cgz $output diff --git a/src/appliance.c b/src/appliance.c index 163d770..cbbe437 100644 --- a/src/appliance.c +++ b/src/appliance.c @@ -39,8 +39,8 @@ #include "guestfs-internal-actions.h" #include "guestfs_protocol.h" -static const char *kernel_name = "vmlinuz." REPO "." host_cpu; -static const char *initrd_name = "initramfs." REPO "." host_cpu ".img"; +static const char *kernel_name = "vmlinuz." host_cpu; +static const char *initrd_name = "initramfs." host_cpu ".img"; 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); -- 1.7.3.1
Seemingly Similar Threads
- [PATCH 0/2] Use link-local addresses when communicating between appliance and host (RHBZ#588763)
- [PATCH] Improve errors from tar-in/tgz-in commands (RHBZ#591155 RHBZ#591250).
- [PATCH] appliance: Set $PATH instead of hard-coding paths to binaries everywhere.
- [PATCH] Use the noop scheduler inside the appliance.
- [PATCH] appliance: Fix code which gets list of kernels.