Package: fai-server
Version: 2.10.1
Severity: normal
Tags: patch

 I hacked make-fai-nfsroot to only make the stamp for completing
something if it succeeded.  That way make-fai-nfsroot -r has a chance
to re-do the failed part.  e.g. I ended up with an nfsroot without the
symlinks from /etc/init.d/rcS to fai, so it didn't do any installing
when I booted it!

 I haven't really tested this, but it works when I don't have to
recover...

--- /usr/sbin/make-fai-nfsroot~ 2006-04-20 09:16:33.000000000 -0300
+++ /usr/sbin/make-fai-nfsroot  2006-06-05 17:01:35.000000000 -0300
@@ -136,8 +136,8 @@
     local stamp=$RUNDIR/$func
     # call subroutine
     [ "$recover" -a -f $stamp ] && return 0 
-    "$@"
-    > $stamp
+    # make a stamp only on success.
+    "$@" && : > $stamp
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 call_verbose() {


 happy hacking,

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages fai-server depends on:
ii  debootstrap                   0.3.3      Bootstrap a basic Debian system
ii  fai-client                    2.10.1     Fully Automatic Installation clien

Versions of packages fai-server recommends:
ii  dhcp3-server                  3.0.4-2    DHCP server for automatic IP addre
ii  fai-kernels                   1.10.3     special kernels for FAI (Fully Aut
ii  nfs-kernel-server [nfs-server 1:1.0.7-18 Kernel NFS server support
ii  rsh-server                    0.17-13    rsh servers.
ii  syslinux                      3.11-3     Bootloader for Linux/i386 using MS
ii  tftpd-hpa [tftpd]             0.42-1     HPA's tftp server
ii  wget                          1.10.2-1   retrieves files from the web

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to