config_distri(): make sure /usr/share/grml/desktop.jpg is removed 0.6.41
authorMichael Prokop <mika@grml.org>
Sun, 22 Apr 2007 12:02:20 +0000 (14:02 +0200)
committerMichael Prokop <mika@grml.org>
Sun, 22 Apr 2007 12:02:20 +0000 (14:02 +0200)
autoconfig.functions
debian/changelog

index cd2e1ca..26ef566 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Klaus Knopper <knopper@knopper.net>, (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Mon Apr 16 19:32:25 CEST 2007 [mika]
+# Latest change: Son Apr 22 14:01:33 CEST 2007 [mika]
 ################################################################################
 
 # {{{ path, variables, signals, umask, zsh
@@ -2243,6 +2243,8 @@ if checkbootparam "distri"; then
   DISTRI="$(getbootparam 'distri' 2>>$DEBUG)"
   if [ -r /cdrom/desktop/"$DISTRI".jpg ] ; then
      [ -n "$BOOTDEBUG" ] && einfo "Debug: bootoption distri found and file /cdrom/desktop/$DISTRI present" && eend 0
+     # make sure the desktop.jpg file is not a symlink, so copying does not file then
+     [ -L /usr/share/grml/desktop.jpg ] && rm /usr/share/grml/desktop.jpg
      cp /cdrom/desktop/"$DISTRI".jpg /usr/share/grml/desktop.jpg
   fi
 fi
index c1ebd70..afbc42c 100644 (file)
@@ -1,3 +1,10 @@
+grml-autoconfig (0.6.41) unstable; urgency=low
+
+  * config_distri(): make sure /usr/share/grml/desktop.jpg is removed
+    if it's a symlink, otherwise the copy will fail.
+
+ -- Michael Prokop <mika@grml.org>  Sun, 22 Apr 2007 14:01:42 +0200
+
 grml-autoconfig (0.6.40) unstable; urgency=low
 
   * Allow BOOT_APPEND from grml-debootstrap via cmdline