[Libguestfs] [PATCH ubuntu repost] Ubuntu: Use apt-get instead of aptitude when installing guestfsd.

Richard W.M. Jones rjones at redhat.com
Thu May 20 13:15:02 UTC 2010


Previously posted here:
http://www.redhat.com/archives/libguestfs/2009-December/msg00041.html

I can't get aptitude to work under debirf (not on Ubuntu anyway), so
using apt-get is necessary for me.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
-------------- next part --------------
>From 7b1151b796642ebeedd0fbbd544a0a9db569954f 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