[Libguestfs] [PATCH 2/5] Ubuntu: Use apt-get instead of aptitude when installing guestfsd.

Richard W.M. Jones rjones at redhat.com
Mon Dec 21 16:02:47 UTC 2009


It's not clear why we use aptitude instead of apt-get in these
scripts.  In debirf 0.25 on Ubuntu, aptitude appears to be uninstalled
during creation of the appliance, so it obviously doesn't work.
Revert to using apt-get.

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 59b0a9b3b08fcaa182c4816f606da8094020641b Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at ubuntu910x64.home.annexia.org>
Date: Mon, 21 Dec 2009 15:52:36 +0000
Subject: [PATCH 2/5] Ubuntu: Use apt-get instead of aptitude when installing guestfsd.

---
 appliance/debian/modules/y0_install-guestfsd |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/appliance/debian/modules/y0_install-guestfsd b/appliance/debian/modules/y0_install-guestfsd
index c95e4f0..3eb8ba9 100755
--- a/appliance/debian/modules/y0_install-guestfsd
+++ b/appliance/debian/modules/y0_install-guestfsd
@@ -16,8 +16,8 @@ find $DEBIRF_ROOT/lib/modules/*/kernel -name '*.ko' $whitelist -a -exec rm '{}'
 # install additional packages:
 PKGLIST=$(< packagelist)
 echo "Will add $PKGLIST"
-debirf_exec aptitude -R -y install $PKGLIST
-debirf_exec aptitude -y remove vim-tiny dhcp3-client iptables
+debirf_exec apt-get --assume-yes install $PKGLIST
+debirf_exec apt-get --assume-yes remove vim-tiny dhcp3-client iptables
 
 debirf_exec mkdir -p --mode=0777 /sysroot
 
-- 
1.6.3.3



More information about the Libguestfs mailing list