Richard W.M. Jones
2010-May-20 13:15 UTC
[Libguestfs] [PATCH ubuntu repost] Ubuntu: Use apt-get instead of aptitude when installing guestfsd.
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 2001From: 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
Guido Günther
2010-Jun-03 08:09 UTC
[Libguestfs] [PATCH ubuntu repost] Ubuntu: Use apt-get instead of aptitude when installing guestfsd.
On Thu, May 20, 2010 at 02:15:02PM +0100, Richard W.M. Jones wrote:> > 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.Since this only affects one script I can keep a patch in Debian to use aptitude (so we get clever dependency resoluton). Best fix would be to look at something like /etc/debian_version and select the right tool (UMTS unfortunately isn't reliable enough here to google what should be used to detect Ubuntu). Cheers, -- Guido