Richard W.M. Jones
2010-Jan-21 22:58 UTC
[Libguestfs] [PATCH] Don't run new-kernel-pkg or nscd (RHBZ#557262).
This is related to this message I posted yesterday: http://www.redhat.com/archives/libguestfs/2010-January/msg00016.html fakechroot doesn't sufficiently contain dracut, which is what was very indirectly causing that problem. However we don't need to run /sbin/new-kernel-package (in the kernel %post script). It takes a long time because dracut is so slow, and it builds an initrd that we never use. So the easiest thing here is to disable this (and also nscd which some %post scripts are trying to run). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html -------------- next part -------------->From b9e2db35ff44c72dbb468d816b24ab0934429337 Mon Sep 17 00:00:00 2001From: Richard Jones <rjones at f13rawhide.home.annexia.org> Date: Thu, 21 Jan 2010 22:52:36 +0000 Subject: [PATCH] Don't run new-kernel-pkg or nscd (RHBZ#557262). --- febootstrap.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/febootstrap.sh b/febootstrap.sh index 6b46ed4..2965a7e 100755 --- a/febootstrap.sh +++ b/febootstrap.sh @@ -168,7 +168,7 @@ export FAKECHROOT_EXCLUDE_PATH=/proc # Substitute some statically-linked commands. This is only supported # in fakechroot > 2.9. For previous versions of fakechroot it is # ignored. -export FAKECHROOT_CMD_SUBST=/sbin/ldconfig=/bin/true:/usr/sbin/glibc_post_upgrade.i686=/bin/true:/usr/sbin/glibc_post_upgrade.x86_64=/bin/true:/usr/sbin/build-locale-archive=/bin/true:/usr/sbin/libgcc_post_upgrade=/bin/true +export FAKECHROOT_CMD_SUBST=/sbin/ldconfig=/bin/true:/usr/sbin/glibc_post_upgrade.i686=/bin/true:/usr/sbin/glibc_post_upgrade.x86_64=/bin/true:/usr/sbin/build-locale-archive=/bin/true:/usr/sbin/libgcc_post_upgrade=/bin/true:/sbin/new-kernel-pkg=/bin/true:/usr/sbin/nscd=/bin/true # Use the libraries inside the chroot. export LD_LIBRARY_PATH="$target"/usr/lib64:"$target"/usr/lib:"$target"/lib64:"$target"/usr/lib -- 1.6.6
Reasonably Related Threads
- Re: [PATCH 1/2] lib: Allow db_dump package to be a weak dependency (RHBZ#1409024).
- [PATCH] fish: Don't fail if -m and --listen flags are both given (RHBZ#612178).
- [PATCH] parted: Don't return "loop" for non-partitioned devices (RHBZ#634246).
- [PATCH] Add waitpid along guestfs_close path (RHBZ#518747)
- [PATCH 0/3] some guestfish sub commands can not handle special files properly (RHBZ#582484)