# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
-# Latest change: Mon Nov 12 11:14:32 CET 2007 [mika]
+# Latest change: Sun Nov 25 18:28:54 CET 2007 [mika]
################################################################################
set -u
echo grml_chroot > $target/etc/debian_chroot
HOSTNAME=''
-[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf
+[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf
+[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local
[ -n "$HOSTNAME" ] || HOSTNAME=grml
echo "$HOSTNAME" > $target/etc/hostname
fi
cp /etc/grml/fai/apt/sources.list $target/etc/apt/sources.list
fi
-
- # FAI softupdate does not execute upgrade, so let's do it on our own:
- $ROOTCMD apt-get update
- if [ -x $target/usr/bin/aptitude ] ; then
- if strings $target/usr/bin/aptitude | grep safe-upgrade 1>/dev/null ; then
- $ROOTCMD aptitude -y safe-upgrade
- else
- $ROOTCMD aptitude -y upgrade
- fi
- else
- $ROOTCMD apt-get -y upgrade
- fi
-
else # no softupdate but fresh installation
# work around http://trac.lighttpd.net/trac/ticket/657