[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[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
>From b9e2db35ff44c72dbb468d816b24ab0934429337 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]