+if [ "$FAI_ACTION" = "softupdate" ] ; then
+ echo "Softupdate"
+ # make sure we prefer grml repository:
+ if [ -r /etc/grml/fai/apt/preferences ] ; then
+ cp /etc/grml/fai/apt/preferences $target/etc/apt/preferences
+ fi
+
+ if [ -r /etc/grml/fai/apt/sources.list ] ; then
+ if [ -L $target/etc/apt/sources.list ] ; then
+ rm $target/etc/apt/sources.list
+ fi
+ cp /etc/grml/fai/apt/sources.list $target/etc/apt/sources.list
+ fi
+
+ $ROOTCMD apt-get update
+
+else # no softupdate but fresh installation
+