Package: fai Followup-For: Bug #312296
* BUGFIX:312296 don't fail if $diskvar isn't copied during softupdates, $diskvar isn't written. this is nothing critical, but scripts/FAIBASE/20-save_diskvar fails. this patch makes it even return 0 if $diskvar isn't copied (as it is always the case when softupdate is run) -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.11-1-686 Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Tue Jun 7 10:33:14 CEST 2005 [EMAIL PROTECTED] * BUGFIX:312296 don't fail if $diskvar isn't copied during softupdates, $diskvar isn't written. this is nothing critical, but scripts/FAIBASE/20-save_diskvar fails. this patch makes it even return 0 if $diskvar isn't copied (as it is always the case when softupdate is run) diff -rN -u old-pfai/examples/simple/scripts/FAIBASE/20-save_diskvar new-pfai/examples/simple/scripts/FAIBASE/20-save_diskvar --- old-pfai/examples/simple/scripts/FAIBASE/20-save_diskvar 2005-06-07 10:37:12.000000000 +0200 +++ new-pfai/examples/simple/scripts/FAIBASE/20-save_diskvar 2005-06-07 10:32:39.000000000 +0200 @@ -2,4 +2,4 @@ # save values of boot device and boot partition [ -d "$target/etc/fai" ] || mkdir -p "$target/etc/fai" -[ -s "$diskvar" ] && cp $diskvar $target/etc/fai +[ -s "$diskvar" ] && cp $diskvar $target/etc/fai || true

