Set shared/default-x-server via debconf to work around #448863
[grml-live.git] / patches / fai_support_aptitude_in_updatebase
1 --- /usr/lib/fai/updatebase.orig        2007-10-29 00:12:49.000000000 +0100
2 +++ /usr/lib/fai/updatebase     2007-10-29 00:13:27.000000000 +0100
3 @@ -31,7 +31,11 @@
4  [ $? -ne 0 ] && yes '' | $ROOTCMD dpkg --configure -a 
5  # using the above value, causes an error: "dpkg need action"
6  export aptopt=
7 +if [ -x /usr/bin/aptitude ] ; then
8 +$ROOTCMD aptitude $aptopt -f -y dist-upgrade </dev/null
9 +else
10  $ROOTCMD apt-get $aptopt -f -y dist-upgrade </dev/null
11 +fi
12  # update dpkg info which packages are available
13  tmp=$($ROOTCMD mktemp)
14  $ROOTCMD apt-cache dumpavail > $FAI_ROOT/$tmp